hacktoberfest-2018/large_number.py

12 lines
243 B
Python
Raw Normal View History

2018-10-08 16:31:43 +00:00
num1 = 10
num2 = 14
num3 = 12
if (num1 >= num2) and (num1 >= num3):
largest = num1
elif (num2 >= num1) and (num2 >= num3):
largest = num2
else:
largest = num3
print("The largest number between",num1,",",num2,"and",num3,"is",largest)