Write a program that will take user's two numbers and display them in ascending order.
For example, you may have the following interface with user.
Please enter
any two integers: 900 200 You entered 900 and 200. The ascending order of them are 200 and 900. |
Please enter
any two integers: 100 200 You entered 100 and 200. The ascending order of them are 100 and 200. |
Note:
How to swap (exchange) two numbers?
Key: get a
temporary box to help.
For example, the way to swap X and Y is followed.
temp = X;
X = Y;
Y = temp;