Write a program that reads in three integers and prints in order if they are sorted in

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” otherwise. For example,

1 2 5 in order
1 5 2 not in order
5 2 1 in order
1 2 2 in order

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: