Read an integer N. This number indicates how many values the array will have.
Then, read N integers (one per line) and store them in an array.
Finally, find and display the smallest number in the array.
Hints:
for loop to read the data and store it in the array.for loop to go through the array and compare each element with the current minimum.An integer N, followed by N integers, one per line.
Print a single integer: the smallest of all elements.
Input:
5
3
7
1
9
5
Output:
1