aneliabogeva

Even Powers of 2

May 20th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.10 KB | None | 0 0
  1. n = int(input())
  2. current = 1
  3.  
  4. for i in range(0, n+1,2):
  5. print(current)
  6. current = current * 4
Advertisement
Add Comment
Please, Sign In to add comment