0
点赞
收藏
分享

微信扫一扫

HDOJ  2002  计算球体积

龙毓七七 2022-08-22 阅读 64


题目:​​http://acm.hdu.edu.cn/showproblem.php?pid=2002​​

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

举报

相关推荐

0 条评论