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

1 Expert Approved Answer
Step: 1 Unlock

In this question I have taken the user input So not ... View full answer

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 Java Concepts Late Objects Questions!