杭电 oj 计算球的体积

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

猜你喜欢

转载自www.cnblogs.com/baifan2618/p/10631648.html
今日推荐