CJCoding With Joseph
15free / daySign inCreate account

Smaller Of Two By Hand

Read two whole numbers and print the smaller one without using min(). Start by assuming the first number is the smallest, then let the second replace it when the second is lower. Input: two lines, each an integer, no prompt. Output: one line, the smaller number.

Expected Output:

4

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
If Statements
📥 Auto-Input:
9\n4\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.