Question: Write a C program that reads a sequence of numbers and display a message 1. The numbers a re red from the standard input. 2.

 Write a C program that reads a sequence of numbers and

Write a C program that reads a sequence of numbers and display a message 1. The numbers a re red from the standard input. 2. The first number is the length of the sequence (n) followed by n numbers. 3. If n is 0 or negative, the program displays the message "Error_1" followed 4. If the length is shorter than n, it displays "Error_2" followed by a new line 5. The program inspects the list and display one of the following messages by a new line on the standard input. and quits. (every one oi the is followed by a newline) Ascending" if the list is strictly ascending. That is every number is ."Descending" if the list is strictly descending. That is every number is ."Not Descending" if the list is ascending. That is every number is ."Not Ascending" if the list is ascending. That is every number is less greater than the previous one for example 1 4 6 8 12 34 less than the previous one for example 78 34 29 15 8 greater than or equal the previous one 1 3 59 9 12 17 than or equal the previous one. For example 100 89 89 73 45 3 example 55555555 ."EQUAL" this is the case when all the numbers are the same for

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 Databases Questions!