#include <iostream>
using namespace std;
int main()
{
//三目运算符
// 创建三个变量a,b,c
int a = 0;
int b = 0;
int c = 0;
cout << "请输入a的数:" << endl;
cin >> a;
cout << "请输入b的数:" << endl;
cin >> b;
//a和b作比较,将变量大的数赋值给c
c = a > b ? a : b;
cout << "c的值是:" << c << endl;
system("pause");
return 0;
}