#include<iostream>
#include<iomanip>
using namespace std;
int main()
{double pi=3.14;
double r,h,v;
cout.setf(ios::showbase);
cin>>r>>h;
v=pi*r*r*h;
cout<<setprecision(4)<<v;
return 0;
}
‘完成下面程序:取圆周率为3.14 ,从键盘中输入半径r和高h,计算并输出圆柱体的体积。‘
最新推荐文章于 2024-05-03 14:59:57 发布