CJCoding With Joseph
15free / daySign inCreate account

Smallest Of Three Function

Write the body of min_of_three(first: int, second: int, third: int) -> int so it returns the smallest of its three parameters without using the built-in min: start by assuming the first is the smallest, then let each of the others replace it when it is smaller. The driver reads three integers and prints what the function returns; leave it as it is. Input: three lines, each an integer, no prompts.

Expected Output:

1

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

Hints3 available
Topics:
Functions
📥 Auto-Input:
3\n1\n2\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.