Example 1
Input
maximum(3, 5, 2)
Output
5
Among 3, 5, and 2, the maximum number is 5.
Full lesson preview
Learn how to find the maximum of three numbers.
Problem statement
Task
Examples
Input
maximum(3, 5, 2)
Output
5
Among 3, 5, and 2, the maximum number is 5.
Input format
Output format
Constraints
Samples
Input
maximum(-10, 0, 10)
Output
10
Among -10, 0, and 10, the maximum number is 10.