Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
21
Task/Loops-Break/Lisaac/loops-break.lisaac
Normal file
21
Task/Loops-Break/Lisaac/loops-break.lisaac
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
Section Header
|
||||
|
||||
+ name := TEST_LOOP_BREAK;
|
||||
|
||||
Section Public
|
||||
|
||||
- main <- (
|
||||
+ a, b : INTEGER;
|
||||
|
||||
`srand(time(NULL))`;
|
||||
{
|
||||
a := `rand()`:INTEGER % 20; // not exactly uniformly distributed, but doesn't matter
|
||||
a.print;
|
||||
'\n'.print;
|
||||
a == 10
|
||||
}.until_do {
|
||||
b := `rand()`:INTEGER % 20; // not exactly uniformly distributed, but doesn't matter
|
||||
b.print;
|
||||
'\n'.print;
|
||||
}
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue