11 它满足条件吗?

  问题出现在判断平方数那里,不确定是否开根号为整数。 #include <stdio.h> #include <math.h> main() { int a,b; scanf("%d",&a); b=sqrt(a); if (a==b*b&&a%2==0) printf("yes"); else printf ("no"); return 0; }
相关文章
相关标签/搜索