Question: Write in a piece of paper a program that will read n integer numbers and determine if they are: numbers sorted in ascending order number

Write in a piece of paper a program that will read n integer numbers and determine if they are:

"numbers sorted in ascending order "number sorted in descending order"

"numbers not sorted.

Your program should read first the n number and then the list of numbers.

As an example, if the input was "3 4 7 21 it should print as in the first case shown above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!