Question: In this problem you must write a program in C to determine whether or not a sequence of values is in ascending order. You should

In this problem you must write a program in C to determine whether or not a sequence of values is in ascending order. You should in no way use a vector to solve this problem. If a vector is used, your grade will be zero.
2 Input
The input will consist of a number n, which indicates how many values constitute the sequence to be checked. The sequence will be
given below, with numbers separated by space (read the input with scanf normally).
3 Output
For each entry, you must print YES if it is in ascending order and NO otherwise.
4 Input Example
4
1379
5 Example Output
YES

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!