A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 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