开方是整数,用c语言描述是什么啊,我现在只学了<stdio.h>阿
来源:百度知道 编辑:UC知道 时间:2024/06/01 11:42:34
开方是整数,用c语言描述是什么啊,我现在只学了<stdio.h>阿
fun(int n)
{int a;
a=sqrt(n);
return(a*a==n)
;}
求开方你会把,
开方为整数,然后把开方平方,如果得到原来的数,那么就是整数。
不知道你明白了吗。
还要includ<math.h>
MATH.H
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑:UC知道 时间:2024/06/01 11:42:34
fun(int n)
{int a;
a=sqrt(n);
return(a*a==n)
;}
求开方你会把,
开方为整数,然后把开方平方,如果得到原来的数,那么就是整数。
不知道你明白了吗。
还要includ<math.h>
MATH.H