Anonymous user
Index finite lists of positive integers: Difference between revisions
Index finite lists of positive integers (view source)
Revision as of 20:30, 8 September 2018
, 5 years ago→{{header|REXX}}: added wording to the REXX section header.
m (promoted to (full) task status.) |
m (→{{header|REXX}}: added wording to the REXX section header.) |
||
Line 644:
=={{header|REXX}}==
This REXX version can handle zeros as well as any sized (decimal) positive integers.
<lang rexx>/*REXX program assigns an integer for a finite list of arbitrary positive integers. */▼
No checks are made that the numbers are non-negative integers or malformed integers.
▲<lang rexx>/*REXX program
parse arg $ /*obtain optional argument (int list).*/
if $='' | $="," then $=3 14 159 265358979323846 /*Not specified? Then use the default.*/
|