计算球体积

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

int main()
{
	double r;
	while(~scanf("%lf", &r))
	{
		printf("%.3f\n", 4.0/3.0*PI*r*r*r);
	}
	
	return 0;
}

  

posted @ 2019-07-23 15:20  青衫客36  阅读(114)  评论(0编辑  收藏  举报