Question: Write a C++ program, named inorder.cc , that reads three integer values from the user (through keyboard entry), then display the three values in ascending
Write a C++ program, named "inorder.cc", that reads three integer values from the user (through keyboard entry), then display the three values in ascending order. For example, if the user entered 3 values: 84 3 130, the program should output the three values as: 3, 84, 130. Here are a few example runs of the program:
Sample run 1
Please enter three integer values: 4 10 6
The three values in ascending order are: 4 6 10
Sample run 2
Please enter three integer values: 20 5 3
The three values in ascending order are: 3 5 20
Sample run 3
Please enter three integer values: 5 10 20
The three values in ascending order are: 5 10 20
Sample run 4
Please enter three integer values: 20 6 10
The three values in ascending order are: 6 10 20
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
