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++ :

Capture 8

Python :

C :

Capture c 1 1
Capture c
Capture c 2 1
IMG 20200422 WA0013 1
#C Code by Agent Falcon
Previous Article

Rearrange Mixed Matrix

Next Article

Reverse Every Word

Write a Comment

Leave a Comment

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