Check Sorted Array – Descending Order

The program must accept N integer values and check if they are sorted in descending order or not.

Input :

5
834 700 53 45 12

Output :

yes

Here are the various methods and logic.

C++ :

Python :

C :

#C Code by Agent Falcon

Leave a Reply

Your email address will not be published. Required fields are marked *

More posts. You may also be interested in.