C语言代码:
2002 c
[code]
#include<stdio.h>
#define PI 3.1415927
int main()
{
double r,v;
while(scanf("%lf",&r)!=EOF)
{
v=4*PI*r*r*r/3;
printf("%.3lf\n",v);
}
}
[/code]
C语言代码:
2002 c
[code]
#include<stdio.h>
#define PI 3.1415927
int main()
{
double r,v;
while(scanf("%lf",&r)!=EOF)
{
v=4*PI*r*r*r/3;
printf("%.3lf\n",v);
}
}
[/code]