Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4. namespace _03.Even_Powers_of_2
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. int n = int.Parse(Console.ReadLine());
  11. int num = 1;
  12. for (int i = 0; i <= n; i+=2)
  13. {
  14. Console.WriteLine(num);
  15. num = 2 * 2 * num;
  16. }
  17.  
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement