CJCoding With Joseph
15free / daySign inCreate account

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
Topics:
If Statements
📥 Auto-Input:
4\n9\n12\n
This input is automatically fed to your program's stdin
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.