10. Largest of Three Numbers
Foundation1000 ms256 MBSolved by 0%
Read three integers on one line and print the largest of them.
If two or three are tied for largest, print that value.
Constraints - `-1000000000 ≤ a, b, c ≤ 1000000000`
Input
A single line containing three integers, separated by spaces.
Output
Print one integer, the largest of the three values.
Input3 9 4
Output9
Notehas the largest value in the middle
Input10 2 7
Output10
Notehas the largest value first
Hints
Four rungs, in order. The last two open once you have submitted an attempt. A wrong one counts.
Hint 1Where to start
Hint 2The approachOpen hint 1 first. This one carries on from it.
Hint 3PseudocodeOpen hint 2 first. This one carries on from it.
Hint 4Full solutionOpen hint 3 first. This one carries on from it.