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

Latest commit

 

History

History
32 lines (21 loc) · 516 Bytes

File metadata and controls

32 lines (21 loc) · 516 Bytes

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: