#include <iostream>
using namespace std;
int main() {
int square;
cout << "Введите площадь:\n";
cin >> square;
if (square > 1000000) cout << "Нет такого участка";
else {
int iteration = 0;
while (iteration * iteration < square) {
++iteration;
}
if (iteration * iteration == square) cout << "Является точным квадратом";
else cout << "Не является точным квадратом";
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter