题解 | #计算球体的体积#
计算球体的体积
https://www.nowcoder.com/practice/0f5d9bfcd63b47fda2052a583b1fbd1f
#include <stdio.h> int main() { double r,pi,V; pi=3.1415926; scanf("%lf",&r); V=4*pi*r*r*r/3; printf("%.3lf",V); return 0; }
计算球体的体积
https://www.nowcoder.com/practice/0f5d9bfcd63b47fda2052a583b1fbd1f
#include <stdio.h> int main() { double r,pi,V; pi=3.1415926; scanf("%lf",&r); V=4*pi*r*r*r/3; printf("%.3lf",V); return 0; }
相关推荐