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())
- s = 0
- while K <= N:
- if K % 2 == 1:
- s += K
- K += 1
- print(s)
- #Ответ: 768182441
- #4)
- s = 1
- n = int(input())
- for x in range(1,n+1):
- s *= x
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement