Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #333
- a = int(input())
- b = int(input())
- x = a
- s = ''
- while x <= b:
- if x % 2 == 0:
- s = s + str(x) + ' '
- x += 1
- print(s)
- #315
- x = int(input())
- y = 1
- s = 0
- while y <= x:
- s = s + y ** 2
- y += 1
- print(s)
- #3059
- n = int(input())
- x = 1
- while x <= n:
- print(x)
- x = x * 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement