#include
#define Pi 3.1416
int main()
{float r,h,c,s1,s2,v1,v2;
printf("请输入圆半径和圆柱高:");
scanf("%f%f",&r,&h);
c=2*Pi*r;
s1=0.5*c*r;
s2=4*s1;
v1=3*s1*r/4;
v2=s1*h;
printf("圆周长=%f\n圆面积=%f\n圆球表面积=%f\n",c,s1,s2);
printf("圆球体积=%f\n圆柱体积=%f\n",v1,v2);
return 0;
}