Given an integer N in the first line of input, followed by N integers in the next line of input, find the maximum among all the N numbers
Note: You will need to call console.nextInt() N times, each time it will give you one of the N integers you need to find the maximum of.
See examples below
2 10 4
10
In this example we are given N = 2, and then we have two numbers, 10 and 4. The maximum of them is 10
5 20 40 3 66 11
66
In this example we are given N = 5, and then we have five numbers, 20, 40, 3, 66, 11. The maximum of them is 66
4 100 200 300 400
400
In this example we are given N = 4, and then we have four numbers, 100, 200, 300, 400. The maximum of them is 400
Test your solution here
when it passes, copy it and submit it here so your coach can grade it.