Largest Array Element · Compiler
Largest Array Element
A freezer logs a sequence of temperature readings. Find the highest reading.
- Input
- Line 1 contains the length n (1 to 100). Line 2 contains n space-separated integers, each from -1000 to 1000.
- Output
- Print the largest integer in the array.
Compiler Explorer runs your code when you run or check it.
Loading your exercise draft…