Question: Write a program named Lab11B in C++ that asks the user for three different numbers in any order. It should then print the numbers in

Write a program named Lab11B in C++ that asks the user for three different numbers in any order. It should then print the numbers in ascending order. Test your program with all of the following test cases and make sure it prints them correctly. (You have no idea what order the numbers will be entered in, so you will probably need to have some if and else if statements to try different options.)

1 2 3

1 3 2

2 3 1

2 1 3

3 2 1

3 1 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!