Example: The Max Number

Write a program that inputs n integers (n > 0) and finds the max number among them. On the first row of the input, enter the number of integers n. After that, enter the numbers themselves, one by one. Examples:

Sample Input and Output

Input Output
2
100
99
100
3
-10
20
-30
20
4
45
-20
7
99
99
1
999
999
2
-1
-2
-1

results matching ""

    No results matching ""