Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/Integer-sequence/NetRexx/integer-sequence-1.netrexx
Normal file
10
Task/Integer-sequence/NetRexx/integer-sequence-1.netrexx
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/* NetRexx */
|
||||
options replace format comments java crossref symbols binary
|
||||
|
||||
k_ = Rexx
|
||||
bigDigits = 999999999 -- Maximum setting for digits allowed by NetRexx
|
||||
numeric digits bigDigits
|
||||
|
||||
loop k_ = 1
|
||||
say k_
|
||||
end k_
|
||||
15
Task/Integer-sequence/NetRexx/integer-sequence-2.netrexx
Normal file
15
Task/Integer-sequence/NetRexx/integer-sequence-2.netrexx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/* 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue