Question: Write a program that First, it asks the user to choose whether sorting order is in increasing order ( I or i ) or decreasing
Write a program that
First, it asks the user to choose whether sorting order is in increasing order I or
i or decreasing order D or d; if the user inputs other character, quit the
program directly.
Second, it reads three integer numbers and sorts these three numbers in the order
according to the choice from first step.
Last, it reports that three numbers are in lenient or strict increasingdecreasing
order. Only when three numbers are all different, the ordering is in strict,
otherwise it is a lenient ordering. Note that when three numbers are all the same,
it is lenient, but it can be lenient increasing or lenient decreasing depending on the
choice from first step
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
