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
Get step-by-step solutions from verified subject matter experts
