September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 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