Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
26
Task/Loops-Break/M2000-Interpreter/loops-break.m2000
Normal file
26
Task/Loops-Break/M2000-Interpreter/loops-break.m2000
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
Module Checkit {
|
||||
M=Random(0, 19)
|
||||
Print M
|
||||
If M=10 then Continue ' because loop flag is false, continue act as Exit
|
||||
Print Random(0, 19)
|
||||
loop
|
||||
}
|
||||
Checkit
|
||||
|
||||
Module Checkit {
|
||||
do {
|
||||
do {
|
||||
{
|
||||
M=Random(0, 19)
|
||||
Print M
|
||||
If M=10 then Break
|
||||
Print Random(0, 19)
|
||||
loop
|
||||
}
|
||||
Print "no print this"
|
||||
} always
|
||||
Print "no print this"
|
||||
} always
|
||||
Print "print ok"
|
||||
}
|
||||
Checkit
|
||||
Loading…
Add table
Add a link
Reference in a new issue