问题及代码
/*
*作者:李长鸿
*时间:20114.10.13
*问题:求圆柱表面积
*输入:半径r,高h
*输出:表面积s
#include <iostream>
using namespace std;
int main()
{
double r,h,s;
cin>>r,h;
s=r*h*2*3.1415926;
cout << "s=" << s<<endl;
return 0;
}
<img src="https://img-blog.youkuaiyun.com/20141013160656058" alt="" />
总结:感谢陈琴!!真的得仔细再仔细,点儿都不能错!