Skip to content
C

Find the Smallest Element

Easyjavapythonccppjavascript

Given an array of N integers, find the smallest element 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 smallest element of the array.

Input (stdin)

Output

Run your code to see output here...