计算球体积

#include <stdio.h>

#define PI 3.1415927
int main()
{
    double v, x;
    while(scanf("%lf", &x)!=EOF)
    {
        v = (4.0/3.0) * PI * x * x * x;
        printf("%.3lf\n",v);
    }
    return 0;
}

相关文章:

  • 2021-10-28
  • 2022-01-27
  • 2021-12-24
  • 2021-11-30
  • 2022-01-05
  • 2022-01-21
猜你喜欢
  • 2021-08-17
  • 2021-09-02
  • 2021-06-24
  • 2022-02-13
  • 2021-06-12
相关资源
相似解决方案