Functions
Function-15
Function-16
Function-17
~/algor $ cat problems/funksiya-uchtaning-kattasi
Largest of three
Easy
1000 ms
128 MB
24%
Write a function Max3(a, b, c) that returns the largest of the integers $a$, $b$ and $c$.
Example 1: Max3(3, 7, 5) → 7
Example 2: Max3(-2, -8, -2) → -2
Write only the function body.
Input
One line with three integers $a$, $b$ and $c$ — the arguments of the function.
Output
The value returned by the function: an integer.
Note
$-10^{9} \le a, b, c \le 10^{9}$
Examples
Input #1
3 7 5
Output #1
7
Input #2
-2 -8 -2
Output #2
-2