RosettaCodeData/Task/Loops-While/Go/loops-while.go
2023-07-01 13:44:08 -04:00

5 lines
57 B
Go

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