#include<stdio.h>
#include<math.h>
int main()
{
long i,n,sum,j;
while(scanf("%ld",&n)==1)
{
if(n==0)
break;
i=sqrt(n);
if(i*i==n)
printf("yes\n");
else
printf("no\n");
}
return 0;
}
#include<math.h>
int main()
{
long i,n,sum,j;
while(scanf("%ld",&n)==1)
{
if(n==0)
break;
i=sqrt(n);
if(i*i==n)
printf("yes\n");
else
printf("no\n");
}
return 0;
}
0 comments:
Post a Comment