#include <iostraem>
using namespace std;
int main()
{
int a,b,c;
cout<<"enter a as a number:";
cin>>a;
cout<<"enter b as a number:";
cin>>b;
cout<<"enter c as a number:";
cin>>c;
cout<<"the max is :";
cout<<(a>b?(a>c?a:c):(b>c?b:c));
system("pause");
return 0;
}
没有测试,不知道能不能过