A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
10
Task/Loops-Break/REXX/loops-break.rexx
Normal file
10
Task/Loops-Break/REXX/loops-break.rexx
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/*REXX program demonstrates a FOREVER DO loop with a test to LEAVE. */
|
||||
|
||||
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.*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue