# include<iostream.h>
# include<iomanip.h>
void main()
{
float pi,h,r,l,s,bs,v,zv;
pi=3.14;
cout<<"请输入圆的半径r和圆柱体的h"<<endl;
cin>>r>h;
l=2*pi*r;
s=pi*r*r;
bs=4*pi*r*r;
v=4/3*pi*r*r*r;
zv=pi*r*r*h;
cout.setf(ios::fixed);
cout.precision(2);
cout<<"圆的周长"<<l<<endl;
cout<<"圆的面积"<<s<<endl;
cout<<"圆的表面积"<<bs<<endl;
cout<<"圆的体积"<<v<<endl;
cout<<"圆柱体的体积"<<zv<<endl;
}
# include<iomanip.h>
void main()
{
float pi,h,r,l,s,bs,v,zv;
pi=3.14;
cout<<"请输入圆的半径r和圆柱体的h"<<endl;
cin>>r>h;
l=2*pi*r;
s=pi*r*r;
bs=4*pi*r*r;
v=4/3*pi*r*r*r;
zv=pi*r*r*h;
cout.setf(ios::fixed);
cout.precision(2);
cout<<"圆的周长"<<l<<endl;
cout<<"圆的面积"<<s<<endl;
cout<<"圆的表面积"<<bs<<endl;
cout<<"圆的体积"<<v<<endl;
cout<<"圆柱体的体积"<<zv<<endl;
}