计算球体积

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

posted on 2011-04-28 11:05  more think, more gains  阅读(151)  评论(0编辑  收藏  举报

导航