23. Largest of Four Numbers
Foundation1000 ms256 MBSolved by 0%
Read four integers on one line and print the largest.
Constraints - `-1000000000 ≤ each value ≤ 1000000000`
Input
A single line containing four integers, separated by spaces.
Output
Print one integer, the largest of the four values.
Input3 9 4 1
Output9
Notehas the largest value second
Input2 4 6 8
Output8
Notehas the largest value last
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.