Question: Write a program that reads in three integers and prints in order if they are sorted in ascending or descending order, or not in order
Write a program that reads in three integers and prints “in order” if they are sorted in ascending or descending order, or “not in order” otherwise. For example,
1 2 5 in order
1 5 2 not in order
5 2 1 in order
1 2 2 in order
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
In this question I have taken the user input So not ... View full answer
Get step-by-step solutions from verified subject matter experts
