Advertisement
KaySawbridge

Compare 2 numbers output largest

Jul 31st, 2020 (edited)
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. num1=int(input("What is your fist number?"))
  2. num2=int(input("What is your second number?"))
  3. if num1>num2:
  4.     print(num1, "Is the largest number")
  5. elif num2>num1:
  6.     print(num2, "Is the largest number")
  7. else:
  8.     print("The numbers are the same")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement