Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 1
- a = int(input("Введите число: "))
- while a > 0: a = a + int(input("Введите число: "))
- input("Нажмите Enter для продолжения")
- # 2
- a = int(input("Введите число: "))
- while a < 0: a = a + int(input("Введите число: "))
- input("Нажмите Enter для продолжения")
- # 3
- a = int(input("Введите число: "))
- while a != 0: a = a + int(input("Введите число: "))
- input("Нажмите Enter для продолжения")
- # 4
- a = int(input("Введите число: "))
- while True:
- if a % 2: break
- else: a = a + int(input("Введите число: "))
- input("Нажмите Enter для продолжения")
- # 5
- n = int(input("Введите N: "))
- i = 0
- while True:
- if i * i <= n: print(i, end=" ")
- else: break
- i += 1
- input("\nНажмите Enter для продолжения")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement