————————————————————————————————————————————2002--------------------------------------------————————————————————

经验:看题目中的提示,严格按照提示中的数据来编写程序。

#include<stdio.h>

#include<math.h>

#define PI 3.1415927

int main()

{

double r,s;

while((scanf("%lf",&r))!=EOF)

{

s=4.0/3*PI*pow(r,3);

printf("%.3lf\n",s);

}

}

posted @ 2015-11-06 12:55  X-POWER  阅读(165)  评论(0编辑  收藏  举报