- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main ()
- {
- int a,b,c,d,e;
- cout<<"please enter the first number:"<<endl;
- cin>>a;
- cout<<"please enter the second number:"<<endl;
- cin>>b;
- cout<<"please enter the third number:"<<endl;
- cin>>c;
- d=(a>b)?a:b;
- e=(d>c)?d:c;
- cout<<"THE BIGGEST OF three:"<<e<<endl;
- system ("pause");
- return 0;
- }
複製代碼 |