Skip to content
C

Find the Largest Element

Easyjavapythonccppjavascript

Given an array of N integers, find the largest element present in the array.

Input Format

The first line contains an integer N. The second line contains N space-separated integers.

Output Format

Print a single integer — the largest element of the array.

Input (stdin)

Output

Run your code to see output here...