![]() |
#2
rjsp2013-12-02 13:30
|
只有本站会员才能查看附件,请 登录
第一行应该输出2,2
第二行应该输出2.000000,2.000000,可为什么不是呢?麻烦知道的解释一下,谢谢了
#include <stdio.h>
#include <math.h>
void main()
{
int m=5,k;
k=sqrt(m);
printf("%d,%d\n",k,sqrt(m));
printf("%f,%f\n",k,sqrt(m));
}