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

8 lines
210 B
Go

func main() {
for i := uint16(0); ; i++ { // type specified here
fmt.Printf("%o\n", i)
if i == math.MaxUint16 { // maximum value for type specified here
break
}
}
}