Problem Description
输入两个整数,请编程求其中的较大者。
Input
在一行中输入用空格隔开的两个整数,例如5 9。
Output
输出两个整数之中较大者,输出形式举例:max=9。
Example Input
5 9
Example Output
max=9
#include <iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a>=b)
cout<<"max="<<a<<endl;
else
cout<<"max="<<b<<endl;
return 0;
}
/***************************************************
User name: YT1658506207邵雪源
Result: Accepted
Take time: 0ms
Take Memory: 208KB
Submit time: 2017-07-26 15:03:37
****************************************************/