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 :
#Python code by Agent Cherry
C :




Recommended searches
Top trending
Remove Characters from Left: The program must accept two string values S1 and S2 as the input. The…
Print Largest Even Number – Digits: Given a number N as the input, print…
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.
Share with
/
Leave a Reply