题解
2023-06-27 19:33:56
发布于:上海
23阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (c == 1) {
int area = a * b;
cout << area << endl;
} else if (c == 2) {
int perimeter = 2 * (a + b);
cout << perimeter << endl;
}
return 0;
}
这里空空如也
有帮助,赞一个