Advertisement
k1alo

While 1

Oct 10th, 2023
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. number = 1
  2. while True:
  3.     user = int(input("Ввведите число: "))
  4.     if user > number:
  5.         print("Загаданное число меньше")
  6.     elif user < number:
  7.         print("Загаданное число больше")
  8.     else:
  9.         print("Вы угадали число")
  10.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement