Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Loops-Continue/REXX/loops-continue-1.rexx
Normal file
11
Task/Loops-Continue/REXX/loops-continue-1.rexx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/*REXX program illustrates an example of a DO loop with an ITERATE (continue). */
|
||||
|
||||
do j=1 for 10 /*this is equivalent to: DO J=1 TO 10 */
|
||||
call charout , j /*write the integer to the terminal. */
|
||||
if j//5\==0 then do /*Not a multiple of five? Then ··· */
|
||||
call charout , ", " /* write a comma to the terminal, ··· */
|
||||
iterate /* ··· & then go back for next integer.*/
|
||||
end
|
||||
say /*force REXX to display on next line. */
|
||||
end /*j*/
|
||||
/*stick a fork in it, we're all done. */
|
||||
8
Task/Loops-Continue/REXX/loops-continue-2.rexx
Normal file
8
Task/Loops-Continue/REXX/loops-continue-2.rexx
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/*REXX program illustrates an example of a DO loop with an ITERATE (continue). */
|
||||
$= /*nullify the variable used for display*/
|
||||
do j=1 for 10 /*this is equivalent to: DO J=1 TO 10 */
|
||||
$=$ || j', ' /*append the integer to a placeholder. */
|
||||
if j//5==0 then say left($, length($) - 2) /*Is J a multiple of five? Then SAY.*/
|
||||
if j==5 then $= /*start the display line over again. */
|
||||
end /*j*/
|
||||
/*stick a fork in it, we're all done. */
|
||||
Loading…
Add table
Add a link
Reference in a new issue