Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Задание №1
- x = int(input())
- while (x % 2 != 0) and (x%10 != 5):
- x = int(input())
- # Задание №2
- for i in range(10):
- print(i)
- # Задание №3
- K = int(input())
- N = int(input())
- i = K
- summ = 0
- while(i <= N):
- if i % 2 == 1:
- summ += i
- i += 1
- print(summ)
- # Задание №4
- N = int(input())
- i = N
- fact = 1
- while(i):
- fact *= i
- i -= 1
- print(fact)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement