← Back to If Statements
Question 223
Largest Of Three
Largest Of Three
Read three whole numbers and print the largest without using max(). Keep a running best: start with the first number, then let each of the other two replace it when it is bigger. Input: three lines, each an integer, no prompt. Output: one line, the largest number.
Expected Output:
12= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
If Statements
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.