Coding Challenge: Minimum of Two Numbers
Let's input two numbers and find the smallest number out of both in the coding exercises.
We'll cover the following
Problem statement
Complete the below program so that the min()
function returns the minimum of its two received numbers.
Here, we would not use any built-in function to find the minimum of two numbers.
Input
min(4.5, 5)
min(19, 9)
min(1, 1)
Expected output
4.5
9
1
Coding exercise
Get hands-on with 1400+ tech skills courses.