新手,帮看下哪有错误
#include <stdio.h>int main()
{
printf("%f\n",1/3*3);
}
这个程序运行后怎么会等于0
2015-05-11 17:50
程序代码:#include <stdio.h>
int main()
{
printf("%f\n",(float)1/3*3);
}
2015-05-11 18:06
2015-05-11 18:08
2015-05-11 18:16
2015-05-11 18:16