Advertisement
2629881

Untitled

Jul 20th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | None | 0 0
  1. static void Main(string[] args)
  2.         {
  3.             int input = int.Parse(Console.ReadLine());
  4.  
  5.             while(input > 1)
  6.             {
  7.                 input = input / 2;
  8.                 Console.WriteLine(input);
  9.             }
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement