RosettaCodeData/Task/Count-in-octal/NetRexx/count-in-octal.netrexx
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07: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