Question: Write a program that reads three numbers and print the numbers in sorted order. For example, if the number reads are 3 , 1 ,
Write a program that reads three numbers and print the numbers in sorted order. For example, if the number reads are and then it prints If the numbers are then the sorted order is Suppose that the numbers are stored with the variables ab and c Then below possible sorted order of a b and c depending on their values. abc acb bac bca cab cbaFor example, if a is b is and c is then the sorted order would be bca This means b is the smallest, follows by c and a is the largest. Hint: it is easier if you use compound Boolean expressions instead of nested if statements.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
