eolymp
bolt
Try our new interface for solving problems
Problems

Squares of numbers

published at 4/14/24, 12:39:03 pm

include<bits/stdc++.h>

using namespace std; int main() { long long a,n; cin>>n; a=1; for (a;a*a<=n;a++) {cout<<a*a<<" "; } return 0; }