zyulfi

A_number_in_an_range

May 14th, 2025 (edited)
680
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | Source Code | 0 0
  1. # 6. Число в интервал
  2. # Въведете цяло число. Проверете дали то е в интервала [10, 50] включително.
  3. # Отпечатайте:
  4.     # "В интервала"
  5.     # "Извън интервала"
  6.  
  7. num = int(input("Please enter a whole number: "))
  8.  
  9. if 10 <= num <= 50:
  10.     print("The number is in the range [10, 50]")
  11. else:
  12.     print("Number is not in range [10, 50]")
Advertisement
Add Comment
Please, Sign In to add comment