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.
Find the second largest element in the array.
Hints:
for loop to read the data and store it in the array.An integer N, followed by N integers, one per line.
The second largest element in the array.
Input:
5
3
7
1
9
5
Output:
7