loading
open in
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Find smallest of three numbers

print ("Enter a number")
number1 = int(input())
print ("Enter another number")
number2 = int(input())
print ("Enter another number")
number3 = int(input())

if (number1 <= number2) & (number1 <= number3):
    print(number1, " is  the smallest number")
elif (number2 <= number1) & (number2 <= number3) :
    print(number2, " is the smallest number")
elif (number3 <= number1) & (number3 <= number1) :
    print(number3, " is the smallest number")
else:
    print("something is not quite right")