simeonshopov

Even powers of 2

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