#include<iostream>
using namespace std;
int check_big(int a, int b)
{
if (a > b){
return a;
}
else{
return b;
}
}
int main() {
int a,b,c;
cin >> a >> b >> c;
cout << "the bigest is: " << check_big(check_big(a, b), c) << endl;
// if(a > b){
// if(a > c){
// cout << "最大值:" << a << endl;
// }
// else
// cout << "最大值:" << c << endl;
// }
// else
// {
// if(b > c){
// cout << "最大值:" << b << endl;
// }
// else
// cout << "最大值:" << c << endl;
// }
return 0;
}
c++题目:输入3个数,求最大值
最新推荐文章于 2023-01-05 15:32:45 发布