编程计算球体体积,请问我的编程哪里出错了呢
# include <stdio.h># include <stdio.h>
int main (void)
{
float volume;
int r = 10;
printf("r:%d\n",r);
volume=(4.0f/3.0f)*3.14*r*r*r;
printf("%f",volume);
system("pause");
return 0
}
难过啊,每次调试的时候,红色那行就出错,到底是为什么呢?请教一下