计算球的体积

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

相关文章:

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