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

16 lines
347 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
/* 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