Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions minimum_of_3.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
a = input("Enter first num")
b = input("Enter second num")
c = input("Enter third num")
a = input("Enter first num:")
b = input("Enter second num:")
c = input("Enter third num:")
if a > c and b > c:
print(str(c)+" is smallest.")
elif a > b and c > b:
print(str(b)+" is smallest.")
else:
elif b > a and c > a:
print(str(a)+" is smallest.")
elif a == b and a == c:
print(str(a)+" is equal to b or c")
elif b == a and b = c:
print(str(b)+" is equal to a or c")
elif c == a and c == b:
print(str(c)+" is equal to b or a")