Friday, November 11, 2016

Uva 10110 - Light, more light

#include<bits/stdc++.h>
using namespace std;
int main()
{
unsigned long n,k;
while(cin >> n  && n ) {
k = (int)sqrt(n);
if (k*k==n)  printf("yes\n");
else  printf("no\n");
       }
return 0;
    }

No comments: