#include<iostream>
using namespace std;
int main()
{
int a,b,c;
cout<<"请输入三个数字"<<endl;//end后面为小写的L
cin>>a>>b>>c;
if(a>b&&a>c)
cout<<"最大数为a:"<<a<<endl;
if(b>a&&b>c)
cout<<"最大数为b:"<<b<<endl;
if(c>a&&c>b)
cout<<"最大数为c:"<<c<<endl;
system("pause");
}
样例