L4 - A

public
yeskendir.sultanov Mar 27, 2024 Never 144
Clone
C++ a.cpp 12 lines (10 loc) | 193 Bytes
1
#include <bits/stdc++.h>
2
3
using namespace std;
4
5
int main() {
6
int n;
7
cin >> n;
8
for (int i = 1; i * i <= n; i++) {
9
cout << i * i << ' ';
10
}
11
return 0;
12
}
13
14