Anonymous user
First class environments: Difference between revisions
m
→{{header|REXX}}: added comments in the REXX section header. -- ~~~~
m (→{{header|REXX}}: changed indentation and whitespace, changed and added comments, changed pgm to handle larger intermediate Collatz numbers. -- ~~~~) |
m (→{{header|REXX}}: added comments in the REXX section header. -- ~~~~) |
||
Line 938:
The formatting is sensative to a terminating Collatz sequence and is shown as blanks.
<br>Column widths are automatically adjusted for their width (maximum number displayed in a column).
<br>The '''hailstone''' function (subroutine) could be coded in-line to further comply with the task's requirement that
<br>the solution have a ''single piece of code to be run repeatedly in each of these environments''.
<lang rexx>/*REXX program illustrates first-class environments (using hailstone #s)*/
parse arg N .; if N=='' then N=12 /*Was N defined? No, use default.*/
|