var n: int = 1024 while n > 0: echo(n) n = n div 2