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; }
相關文章
相關標籤/搜索