LearnPy Hub
← Loops problems
Easy

Largest Without max()

Read n and then n integers (one per line). Find the largest with a loop, without using max().

Input

n, then n lines.

Output

One integer.

Sample 1

Input
3
4
9
2
Output
9

Sample 2

Input
1
-5
Output
-5
solution.py
Output appears here
Largest Without max() · Python practice problem · LearnPy Hub