1、判断是否为平方数
#include <stdio.h>
#include <math.h>
int main()
{
int a;
scanf("%d",&a);
if(sqrt(a)==(int)sqrt(a)) //sqrt()平方根函数
printf("Y");
else
printf("N");
return 0;
}
C语言常用函数库http://c.biancheng.net/c/ref/list_288_2.html
1、判断是否为平方数
#include <stdio.h>
#include <math.h>
int main()
{
int a;
scanf("%d",&a);
if(sqrt(a)==(int)sqrt(a)) //sqrt()平方根函数
printf("Y");
else
printf("N");
return 0;
}
C语言常用函数库http://c.biancheng.net/c/ref/list_288_2.html