#include<iostream>
using namespace std;
int main()
{
double r,h,area=0;
cout<<"please enter the value of r and h "<<endl;
while(cin>>r>>h){
cout<<"the superficial area of cyclinder is "<<
(2*3.14*r*r+2*3.14*r*h)<<endl;
}
return 0;
}
第7周项目1-圆柱体的表面积
最新推荐文章于 2021-09-02 09:08:03 发布