daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Jul 18th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top