#include<iostream>
#include<cmath>
using namespace std;
int main()
{
const double pi = 3.1415926;
double x;
cout.precision(3);
while( cin >> x )
{
cout << fixed << 4*pi*pow(x,3)/3 << endl;
}
system("pause");
}
转载于:https://www.cnblogs.com/hibernate3-example/archive/2011/11/12/2492759.html