Find Maximum

Easy

📝 Description

Given an array of integers, find the maximum value.

Input Format

Line 1: n (number of elements) Line 2: n space-separated integers

Output Format

A single integer representing the maximum value

Constraints

1 ≤ n ≤ 100 -1000 ≤ numbers[i] ≤ 1000

🔍 Sample Input

5
3 7 2 9 5
            

✅ Sample Output

9
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run