Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- main()
- {
- //ifstream cin("10110.in");
- //ofstream cout("10110.out");
- while (true)
- {
- int n, count = 0;
- cin >> n;
- int temp = sqrt(n);
- if (n == 0)
- {
- break;
- }
- else
- {
- if (temp * temp == n)
- {
- cout << "YES" << endl;
- }
- else
- cout << "NO" << endl;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement