uva10110 Light, more light
View Code
#include<stdio.h> #include<math.h> #include<string.h> int main() { unsigned int n, k; while(scanf("%d",&n) && n) { k = floor(sqrt((double)n)); if(k*k == n) puts("yes"); else puts("no"); } return 0; }