Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
|
|
@ -1,10 +1,11 @@
|
|||
/*REXX program to illustrate DO loop with an ITERATE (continue). */
|
||||
/*REXX program illustrates a DO loop with an ITERATE (continue). */
|
||||
|
||||
do j=1 to 10
|
||||
call charout , j", "
|
||||
|
||||
if j//5==0 then do
|
||||
say
|
||||
iterate
|
||||
end
|
||||
end /*j*/
|
||||
do j=1 for 10 /*equivalent to: DO J=1 TO 10 */
|
||||
call charout , j /*write the integer to 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 int*/
|
||||
end
|
||||
say /*force REXX display to next line*/
|
||||
end /*j*/
|
||||
/*stick a fork in it, we're done.*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue