zyulfi

Comparison

May 14th, 2025 (edited)
661
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.56 KB | Source Code | 0 0
  1. # 3.Сравнение на две числа
  2. # Въведете две цели числа. Отпечатайте:
  3.     # "Първото е по-голямо"
  4.     # "Второто е по-голямо"
  5.     # "Равни са"
  6.  
  7. num_one = int(input("Please enter the first number: "))
  8. num_second = int(input("Please enter the second number: "))
  9.  
  10. if num_one > num_second:
  11.     print("The first number is greater than the second.")
  12. elif num_second > num_one:
  13.     print("The second number is greater than the first.")
  14. else:
  15.     print("The numbers are equal.")
Tags: Comparison
Advertisement
Add Comment
Please, Sign In to add comment