Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Loops-Nested/MOO/loops-nested.moo
Normal file
18
Task/Loops-Nested/MOO/loops-nested.moo
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
a = make(10, make(10));
|
||||
for i in [1..10]
|
||||
for j in [1..10]
|
||||
a[i][j] = random(20);
|
||||
endfor
|
||||
endfor
|
||||
for i in [1..10]
|
||||
s = "";
|
||||
for j in [1..10]
|
||||
s += tostr(" ", a[i][j]);
|
||||
if (a[i][j] == 20)
|
||||
break i;
|
||||
endif
|
||||
endfor
|
||||
player:tell(s);
|
||||
s = "";
|
||||
endfor
|
||||
player:tell(s);
|
||||
Loading…
Add table
Add a link
Reference in a new issue