?!
查看原帖
?!
1567200
Z310gdfzzyl楼主2025/1/1 12:41

其实这道题用if也可以。。。。。。

#include <bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c;
	cin >> a>>b>>c;
	int f = 0;
	if (a > b) {
		f = a; 
	} else {
		f = b;
	}
	if (f < c) {
		f = c;
	}
		
	cout << f;	 
	return 0;
}
2025/1/1 12:41
加载中...