HDU/2002/main.c

13 lines
202 B
C
Raw Permalink Normal View History

2020-08-31 16:48:58 +00:00
#include <stdio.h>
#define PI 3.1415927
#define TQ(x) ((x)*(x)*(x))
int main(void){
double r = 0.0;
while(scanf("%lf",&r) == 1){
printf("%.3lf\n",(4.0/3.0)*PI*TQ(r));
getchar();
}
return 0;
}