THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

Check array ascending

Threads: For an array of n integers. Check that the array ascending. Ascending array is larger array that follows the previous number.
Input: The first line is an integer n. The second line 2 n is an integer array, of numbers separated by spaces.
Output: If the array ascending print “TRUE”, if not printed “FALSE”.
For example:

input:
4
4 3 3 2
output:
FALSE

You are not logged in? Log in to Submit Now!

6 Comments

Add a Comment