题解 | #牛牛的球#
牛牛的球
http://www.nowcoder.com/practice/203ca3114f8845a9bbd673bae6c5dd2b
int main(){
int r = 0;
float v = 0;
scanf("%d",&r);
v = 4.0f/3.0f*3.14*r*r*r;//体积
printf("%.2f",v);
return 0;
}
牛牛的球
http://www.nowcoder.com/practice/203ca3114f8845a9bbd673bae6c5dd2b
int main(){
int r = 0;
float v = 0;
scanf("%d",&r);
v = 4.0f/3.0f*3.14*r*r*r;//体积
printf("%.2f",v);
return 0;
}
相关推荐