#include<iostream>
using namespace std;
int main()
{
int num1 = 0;
int num2 = 0;
int num3 = 0;
cout << "输入三个数字" << endl;
cin >> num1;
cin >> num2;
cin >> num3;
cout << "数字1=" << num1 << endl;
cout << "数字2=" << num2 << endl;
cout << "数字3=" << num3 << endl;
if (num1>num2)
{
if (num1 > num3)
{
cout << "最大数为num1=" << num1 << endl;
}
}
else if (num2>num3)
{
cout << "最大数为num2=" << num2 << endl;
}
else
{
cout << "最大数为num3=" << num3 << endl;
}
system("pause");
return 0;
}