RosettaCodeData/Task/Loops-While/Go/loops-while.go

6 lines
57 B
Go

i := 1024
for i > 0 {
fmt.Printf("%d\n", i)
i /= 2
}