RosettaCodeData/Task/Integer-sequence/NetRexx/integer-sequence-2.netrexx

16 lines
347 B
Plaintext

/* 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 = 10 -- default to decimal
k_ = BigInteger
k_ = BigInteger.ZERO
loop forever
k_ = k_.add(BigInteger.ONE)
say k_.toString(int radix)
end