杭电OJ2002 球的体积

杭电OJ2002 球的体积

#include <iostream>
#include <iomanip>
#define PI 3.1415927
using namespace std;

int main()
{
    double v,r;
    while(cin>>r)
    {
       v=4*PI*r*r*r/3;
        cout <<fixed<<setprecision(3)<<v<< endl;
    }

    return 0;
}

猜你喜欢

转载自blog.csdn.net/weixin_40076972/article/details/86656297