Advertisement
ydpetkov

even_powers_of_2

Jul 28th, 2022
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. n = int(input())
  2.  
  3. for num in range(n +1):
  4. if num % 2 == 0:
  5. print(2 ** num)
  6.  
  7.  
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement