#include <iostream>
#include <cmath>
using namespace std;
signed main()
{
int n, i = 1;
cin >> n;
for (;;) {
if (pow(i,2) > n){
cout << pow(i,2);
break;
}
i++;
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
#include <cmath>
using namespace std;
signed main()
{
int n, i = 1;
cin >> n;
for (;;) {
if (pow(i,2) > n){
cout << pow(i,2);
break;
}
i++;
}
return 0;
}