求平方根的问题 小白求教
#include<stdio.h>#include<math.h>
main()
{double x;
scanf("%1f",&x);
if(x>=0)
printf("%10.61f",sqrt(x));
}
我编译链接都没错,运行的时候为什么不求平方根呢?
2013-04-23 09:36
2013-04-23 09:38
2013-04-23 09:39
2013-04-23 09:40
2013-04-23 09:41
2013-04-23 09:41
2013-04-23 09:42
2013-04-23 09:42
2013-04-23 09:43
2013-04-23 09:45