RosettaCodeData/Task/Count-in-octal/Go/count-in-octal-3.go
2023-07-01 13:44:08 -04:00

17 lines
354 B
Go

import "fmt"
func main() {
for i := 0.; ; {
fmt.Printf("%o\n", int64(i))
/* uncomment to produce example output
if i == 3 {
i = float64(1<<53 - 4) // skip to near the end
fmt.Println("...")
} */
next := i + 1
if next == i {
break
}
i = next
}
}