Python program to find smallest of three numbers

Subject: Python Programming

Contributed By: Nunugoppula Ajay

Created At: February 24, 2025

Question:


Write a Python program to find smallest of three numbers.

Explanation Video:

Custom Image

Explanation:

 

 

Source Code:
a=int(input("Enter a value : "))
b=int(input("Enter b value : "))
c=int(input("Enter c value : "))
if a<b and a<c:
    print(a,"is the smallest number")
elif b<a and b<c:
    print(b,"is the smallest number")
else:
    print(c,"is the Smallest Number")
Input:
Enter a value : 23
Enter b value  : 43
Enter c value : 4 
Output:
4 is the Smallest Number
Share this Article & Support Us:
Status
printf('Loading...');