【杭电】[2002]计算球体积

题目描述

不用pow是因为据说调用函数没有直接乘运算快……

#include<stdio.h>
#define PI 3.1415927
int main()
{
    double V,r;
    while(scanf("%lf",&r)!=EOF)
    {
        V=(PI*r*r*r*4)/3;
        printf("%.3lf\n",V);
    }
return 0;
}
原文地址:https://www.cnblogs.com/BoilTask/p/12570195.html