Largest of three
EasyBasics
Read three whole numbers and print the largest of them.
Input
One line with three integers separated by spaces.
Output
The largest of the three.
Constraints
- Each number is between -1,000,000 and 1,000,000.
The input is read for you. The starter code puts it in variables; write your code under Your code here and print the answer. Changed the code already? Reset () brings the starter back.
Example 1
Input
3 9 4
Output
9
Why:
9 is bigger than 3 and 4.
Example 2
Input
-5 -2 -8
Output
-2
Why:
Of three negative numbers, -2 is the largest.
Hints
Was this a good challenge?
- Solved by
- 1
- Submissions
- 1
- Accepted
- 100%