In this python if else program, we will find the lowest number between three numbers.
Steps to solve the program
- Take three numbers as input.
- Using nested if-else statements find the lowest number among them.
- If num1 is less than num2 create a nested if-else statement to check whether the num1 is less than num2 if yes then num1 is the lowest number.
- If num2 is less than num1 create a nested if-else statement to check whether the num2 is less than num3 if yes then num2 is the lowest number.
- Else num3 is the lowest number.
- Print the respective output.
num1 = 45
num2 = 23
num3 = 68
if num1
Output :
Lowest numbner: 23