心有猛虎_细嗅蔷薇
#include<stdio.h>
#define PI 3.14
int main(){
float r,h,c,s,S,V,CV;
sacnf("%f %f",&r,&h);
c = 2*PI*r;
s = PI*r*r;
S = 4*PI*r*r;
V =(4/3)*PI*r*r*r; //V=4πR³/3
CV = s*h; //圆柱体积:底面积*高
printf("周长 = %f",c);
printf("圆面积 = %f",s);
printf("球表面积 = %f",S);
printf("球体积 = %f",V);
printf("圆柱体积 = %f",CV);
}