qfedu-basic-level/day4/exercise_2.4.5.2.cpp

12 lines
201 B
C++

#include <iostream>
using namespace std;
int main()
{
int a, b;
cout << "输入两个数:" << endl;
cin >> a >> b;
cout << "最大值为: " << (a > b ? a : b) << endl;
return 0;
}