Smallest among three numbers in python
Smallest among three numbers in python
a=int(input())
b=int(input())
c=int(input())
l=[]
l.append(a)
l.append(b)
l.append(c)
if(a!=b or b!=c or c!=a):
print(min(l))
else:
print(a)
Smallest among three numbers in python
a=int(input())
b=int(input())
c=int(input())
l=[]
l.append(a)
l.append(b)
l.append(c)
if(a!=b or b!=c or c!=a):
print(min(l))
else:
print(a)
Comments
Post a Comment