#include
void main()
{
float r,h,s1,s2,s3,l,v1,v2;
scanf("r is :%f",&r);
scanf("h is :%f",&h);
s1=r*r*3.14;//圆面没尘积枯衫禅
s2=4*3.14*r*4*3.14*r//球体面积塌渣
s3=r*r*3.14*2+2*3.14*r*h;//圆柱体面积
l=2*3.14*r;//圆周长
v1=(4.00/3.00)*3.14*r*r*r//球体体积,因为,4/3算出来是取整,所以,需要将其变成浮点型数据进行计算
v2=3.14*r*r*h;
printf("%.2f,%.2f,%.2f,%.2f,%.2f,%.2f\n",s1,s2,s3,l,v1,v2);
}
double r=2.5,h=3.0;
double 雀让zhouchang=2*3.14*r;
double circlearea=3.14*r*r;
double surface=criclearea*2+zhouchang*h;
double v=circlearea*h;
printf("圆周顷没局长%0.2lf圆面积%0.2lf表面积%0.2lf圆柱体积察悔%0.2lf\n"
zhouchang,circlearea,surface,v);