题解 | #获取两数中的较大值#
获取两数中的较大值
https://www.nowcoder.com/practice/136bd5e1021d4d698b9f5227d7dfb684
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a;
int b;
cin >> a >> b;
int c;
c=max(a, b);
cout << c << endl;
return 0;
}
获取两数中的较大值
https://www.nowcoder.com/practice/136bd5e1021d4d698b9f5227d7dfb684
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a;
int b;
cin >> a >> b;
int c;
c=max(a, b);
cout << c << endl;
return 0;
}
相关推荐
查看3道真题和解析