Question: Write a program that prompts the user to input three numbers. The program should then output the numbers in ascending order, separated by a single
Write a program that prompts the user to input three numbers. The program should then output the numbers in ascending order, separated by a single space.
2 99 134
Output
Enter three numbers : 2 99 134 The order of numbers is 2 99 134
All positive not in order case 1
Input
839 732 803
Output
Enter three numbers : 839 732 803 The order of numbers is 732 803 839
Results
732 803 839
All negative not in order case 1
Input
-489 -503 -89
Output
Enter three numbers : -489 -503 -89 The order of numbers is -503 -489 -89
Results
-503 -489 -89
Input
8943 -3435 0
Output
Enter three numbers : 8943 -3435 0 The order of numbers is -3435 0 8943
Results
-3435 0 8943
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
