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

12 lines
201 B
C++
Raw Normal View History

2023-06-16 09:15:39 +08:00
#include <iostream>
using namespace std;
int main()
{
int a, b;
cout << "输入两个数:" << endl;
cin >> a >> b;
cout << "最大值为: " << (a > b ? a : b) << endl;
return 0;
}