#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<max(a,b)<<endl;
return 0;
}
输出最大数代码2(C++11)
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<max(a,b)<<endl;
return 0;
}