简单的样本程序
#include<iostream>
#include<math.h>using namespace std;
int main(){
const double pi = 4.0*atan(1.0);
double r,h,s1,s2,s;
cin >> r >> h ;
s1=pi*r*r;
s2=2*pi*r*h;
s=s1*2.0+s2;
cout << s <<endl;
return 0;
}
最后
以上就是霸气小霸王最近收集整理的关于自己套用的简单程序样本的全部内容,更多相关自己套用内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复