September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -1,10 +1,10 @@
|
|||
/*REXX program demonstrates a FOREVER DO loop with a test to LEAVE. */
|
||||
/*REXX program demonstrates a FOREVER DO loop with a test to LEAVE (break). */
|
||||
|
||||
do forever /*perform until da cows come home*/
|
||||
a=random(19) /*same as: random(0,19) */
|
||||
call charout ,right(a,5) /*show A right-justified, col. 1.*/
|
||||
if a==10 then leave /*Random#=10? Then cows went home*/
|
||||
b=random(19) /*same as: random(0,19) */
|
||||
say right(b,5) /*show B right-justified, col. 2.*/
|
||||
end /*forever*/
|
||||
/*stick a fork in it, we're done.*/
|
||||
do forever /*perform loop until da cows come home.*/
|
||||
a=random(19) /*same as: random(0, 19) */
|
||||
call charout , right(a, 5) /*show A right─justified, column 1.*/
|
||||
if a==10 then leave /*is random #=10? Then cows came home.*/
|
||||
b=random(19) /*same as: random(0, 19) */
|
||||
say right(b, 5) /*show B right─justified, column 2.*/
|
||||
end /*forever*/
|
||||
/*stick a fork in it, we're all done. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue