Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Loops-Break/Chapel/loops-break.chapel
Normal file
11
Task/Loops-Break/Chapel/loops-break.chapel
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use Random;
|
||||
|
||||
var r = new RandomStream();
|
||||
while true {
|
||||
var a = floor(r.getNext() * 20):int;
|
||||
writeln(a);
|
||||
if a == 10 then break;
|
||||
var b = floor(r.getNext() * 20):int;
|
||||
writeln(b);
|
||||
}
|
||||
delete r;
|
||||
Loading…
Add table
Add a link
Reference in a new issue