HDU 2002 计算球体积
1 #include<stdio.h> 2 #define PI 3.1415927 3 int main() 4 { 5 double r; 6 while(scanf("%lf",&r)!=EOF) 7 printf("%.3lf\n",r/3*4*r*r*PI); 8 return 0; 9 }
1 #include<stdio.h> 2 #define PI 3.1415927 3 int main() 4 { 5 double r; 6 while(scanf("%lf",&r)!=EOF) 7 printf("%.3lf\n",r/3*4*r*r*PI); 8 return 0; 9 }