EmoRz

Powers of Two

Aug 22nd, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     public static void Main()
  6.     {
  7.         var n = int.Parse(Console.ReadLine());
  8.        
  9.         for(int i = 0; i <= n; i++)
  10.         {
  11.            
  12.             Console.WriteLine(Math.Pow(2,i));
  13.        
  14.         }
  15.            
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment