计算个体积什么的
#include <iostream>
#include <iomanip>
using namespace std;
#define p 3.1415926
int main()
{float r,h,y1,y2,q1,q2,v;
cout<<"请输入圆的半径和圆柱的高"<<endl;
cin>>r>>h;
y1=2*p*r;
y2=p*r*r;
q1=4*p*r*r;
q2=3.0/4.0*p*r*r*r;
v=y2*h;
cout<<setiosflags(ios::fixed)<<setiosflags(ios::right)<<setprecision(2);
cout<<setw(10)<<y1<<endl;
cout<<setw(10)<<y2<<endl;
cout<<setw(10)<<q1<<endl;
cout<<setw(10)<<q2<<endl;
cout<<setw(10)<<v<<endl;
return 0;
}