Anonymous user
Executable library: Difference between revisions
m
→task 2, 3: fixed HTML tag. -- ~~~~
(→{{header|Limbo}}: Incomplete. (A comment to the effect that "running blah on its own would produce bleh" would work, or something more.) |
m (→task 2, 3: fixed HTML tag. -- ~~~~) |
||
Line 1,091:
return s</lang>
===task 2, 3===
The following program is named: : '''HAIL_PGM.REX''' and is stored in the current directory.
<lang rexx>/*REXX pgm tests a number and a range for hailstone (Collatz) sequences.*/
parse arg x .; if x=='' then x=27 /*get the optional first argument*/
Line 1,114:
(between 1──►99,999) 77031 has the longest hailstone sequence: 351
</pre>
===task 4===
The following program is named: '''MAIL_POP.REX''' and is stored in the current directory.
|