Answer to Question #4838 in C++ for matt
write a program that ask the user to enter two numbers. the program should use the conditional operator to determine which number is the smaller and which is the larger.
cout<<"Enter number a:";
cout<<"Enter number b:";
if (a>b) cout<<"a is larger than b";
if (a<b) cout<<"b is larger than a";
if (a==b) cout<<"a is equal b";
No comments. Be first!