Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Loops-Nested/Zkl/loops-nested.zkl
Normal file
11
Task/Loops-Nested/Zkl/loops-nested.zkl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
const N=5;
|
||||
var rows=(0).pump(N,List, (0).pump.fp(N,List,(1).random.fpM("1-",21)) );
|
||||
try{
|
||||
foreach r in (N){
|
||||
foreach c in (N){
|
||||
x:=rows[r][c]; x.print(",");
|
||||
if (x==20) { println("Found it!"); throw(Exception.Generic); }
|
||||
}
|
||||
}
|
||||
println("Not found");
|
||||
}catch(Generic){}
|
||||
Loading…
Add table
Add a link
Reference in a new issue