Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

Latest commit

 

History

History

maximum_of_array

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Maximum of Array

This program takes an array of size N and prints its maximum.

Input Format

  • The input consists of two lines.
  • In the first line, there will be a single integer N.
  • In the second line, there will be N space separated integers.

Output Format

A single integer, the maximum of the array.

Sample Input

5
-5 -4 -3 -2 -1

Sample Output

-1

Implemented in: