Anonymous user
Loops/While: Difference between revisions
m
→version 4, index reduction: add a comment about the BY default for REXX do loops. -- ~~~~
(→version 3, faster WHILE comparison: added another REXX version. -- ~~~~) |
m (→version 4, index reduction: add a comment about the BY default for REXX do loops. -- ~~~~) |
||
Line 1,145:
===version 4, index reduction===
<lang rexx>/*REXX program demonstrates a DO WHILE with index reduction construct.*/
/* [↓] note: BY defaults to 1*/
do j=1024 by 0 while j>>0 /*this is an exact comparison. */
say right(j,10) /*pretty output by aligning right*/
|