Advertisement
Spocoman

03. Even Powers of 2

Dec 23rd, 2021 (edited)
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.07 KB | None | 0 0
  1. num = int(input())
  2.  
  3. for i in range(0, num + 1, 2):
  4.     print(pow(2, i))
  5.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement