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

14 lines
200 B
Go

import (
"big"
"fmt"
)
func main() {
defer func() {
recover()
}()
one := big.NewInt(1)
for i := big.NewInt(0); ; i.Add(i, one) {
fmt.Printf("%o\n", i)
}
}