Question: C++ Write a program that compares three integers and sorts them from largest to smallest. If two or three of the integers are the same,

C++

Write a program that compares three integers and sorts them from largest to smallest. If two or three of the integers are the same, the output should be say so. (for example: all the numbers are equal, or 21 is equal to 21, which is larger than 15). Have the user input the following 3 integers (21 17 53). The output should say: 53 is larger than 21 which is larger than 17. The input order should be: 21, 17, 53.

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!