杭电 hdu 2002

计算球体积:

#include<stdio.h>
#define PI 3.1415927
int main(){
    double a,sum;
    while(scanf("%lf",&a)!=EOF){
        sum=(4*PI*a*a*a)/3;
        printf("%.3lf\n",sum);
    }
    return 0;
}


你可能感兴趣的:(ACM,HDU,杭电,2002)