RosettaCodeData/Task/Count-in-octal/NetRexx/count-in-octal.netrexx
2023-07-01 13:44:08 -04:00

15 lines
324 B
Text

/* NetRexx */
options replace format comments java crossref symbols binary
import java.math.BigInteger
-- allow an option to change the output radix.
parse arg radix .
if radix.length() == 0 then radix = 8
k_ = BigInteger
k_ = BigInteger.ZERO
loop forever
say k_.toString(int radix)
k_ = k_.add(BigInteger.ONE)
end