41 lines
208 B
Python
41 lines
208 B
Python
def smallest(a,b,c):
|
|
if a<b and a<c:
|
|
print (a)
|
|
elif b<c:
|
|
print (b)
|
|
else:
|
|
print (c)
|
|
-24
|
|
2
|
|
#mainprogram
|
|
smallest(45,-24,89.90)
|
|
smallest(100,20,2)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|