HDU-2002

计算球体积

 1 #include<stdio.h>
 2 #include<stdlib.h>
 3 #include<math.h>
 4 #include<string.h>
 5 #define PI 3.1415927
 6 int main()
 7 {
 8     double r;
 9     while (scanf("%lf",&r)!=EOF)
10         printf("%.3lf
",PI*r*r*r*4/3);
11     return 0;
12 }
原文地址:https://www.cnblogs.com/leiyuxiang/p/3489711.html