————————————————————————————————————————————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 ",s);

}

}

原文地址:https://www.cnblogs.com/A-FM/p/4942281.html