#include<stdio.h> #include<math.h> #define PI 3.1415927 int main() { double a,V; while(scanf("%lf",&a)!=EOF) { V=PI*a*a*a*4/3; printf("%.3lf\n",V); } return 0; }
#include<stdio.h> #include<math.h> #define PI 3.1415927 int main() { double a,V; while(scanf("%lf",&a)!=EOF) { V=PI*a*a*a*4/3; printf("%.3lf\n",V); } return 0; }
转载于:https://www.cnblogs.com/hfc-xx/p/4883492.html