#include <iostream>
using namespace std;
double yuan(double r);
int juxing(int a, int b);
int tixing(int s, int x, int h);
int main()
{
double r = 1;
int a = 10;
int b = 5;
int s = 4, x = 8, h = 6;
cout << "圆的面积为"<< yuan(r)<<endl;
cout << "矩形的面积为"<<juxing(a,b)<<endl;
cout << "梯形的面积为"<<tixing(s,x,h)<<endl;
return 0;
}
double yuan(double r)
{
return (3.14*r*r);
}
int juxing(int a, int b)
{
return a * b;
}
int tixing(int s, int x, int h)
{
return (s + x)*h*0.5;
}
11-05
9355
05-09
1070
10-02
1943
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交