Largest of three
Read three whole numbers and print the largest one.
Input
3 9 4
Expected output
9
Input
-1 -7 -3
Expected output
-1
Show a hint
Start with max = a, then compare max with b and with c.
Show a solution
Loading the editor…
Run the tests to check your solution.