RosettaCodeData/Task/Integer-sequence/NetRexx/integer-sequence-2.netrexx
2023-07-01 13:44:08 -04:00

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