Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
21
Task/Loops-Break/Oberon-2/loops-break.oberon
Normal file
21
Task/Loops-Break/Oberon-2/loops-break.oberon
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
MODULE LoopBreak;
|
||||
IMPORT
|
||||
RandomNumbers,
|
||||
Out;
|
||||
|
||||
PROCEDURE Do();
|
||||
VAR
|
||||
rn: LONGINT;
|
||||
BEGIN
|
||||
LOOP
|
||||
rn := RandomNumbers.RND(20);
|
||||
Out.LongInt(rn,0);Out.Ln;
|
||||
IF rn = 10 THEN EXIT END;
|
||||
rn := RandomNumbers.RND(20);
|
||||
Out.LongInt(rn,0);Out.Ln
|
||||
END
|
||||
END Do;
|
||||
|
||||
BEGIN
|
||||
Do
|
||||
END LoopBreak.
|
||||
Loading…
Add table
Add a link
Reference in a new issue