Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1
- x = int(input())
- while x % 2 != 0:
- x = int(input())
- answer: x % 2 != 0
- #2
- for i in range (10):
- print(i)
- answer: i 10
- #3
- k = int(input())
- n = int(input())
- m = 0
- while m < n:
- for i in range (k, n+1):
- if i % 2 == 0:
- continue
- else:
- m += i
- print(m)
- answer: 768182441
- #4
- n = int(input())
- x = 1
- for i in range (1, n+1):
- x *= i
- print(x)
- answer: 3628800
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement