Class 9th CBSE

Write a Python code to input three numbers and display the smallest number.

Python basic

Write a Python code to input three numbers and display the smallest number.

Sol :- 

import math
n1 = int(input(“Enter the first number :- “))
n2 = int(input(“Enter the Second number :- “))
n3 = int(input(“Enter the third number :- “))
c = min(n1,n2)
p = min(n3,c)
print(“Smallest number”,p)

Fun & Easy to follow
Works on all devices
Your own Pace
Super Affordable

Popular Videos

Play Video

UX for Teams

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer

Play Video

SEO & Instagram

Learn the basics and a bit beyond to improve your backend dev skills.

ava4.png
Chris Matthews

Designer