Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
28
Task/Loops-Nested/Lang/loops-nested.lang
Normal file
28
Task/Loops-Nested/Lang/loops-nested.lang
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
&values = fn.arrayMake(10)
|
||||
$i
|
||||
repeat($[i], 10) {
|
||||
&array = fn.arrayMake(10)
|
||||
|
||||
$j
|
||||
repeat($[j], 10) {
|
||||
&array[$j] $= fn.randRange(20) + 1
|
||||
}
|
||||
|
||||
&values[$i] ::= &array
|
||||
}
|
||||
|
||||
$row
|
||||
foreach($[row], &values) {
|
||||
$ele
|
||||
foreach($[ele], $row) {
|
||||
fn.print(\s$ele)
|
||||
|
||||
if($ele === 20) {
|
||||
con.break(2) # Number of loops we want to break out of
|
||||
}
|
||||
}
|
||||
|
||||
fn.println()
|
||||
}
|
||||
|
||||
fn.println()
|
||||
Loading…
Add table
Add a link
Reference in a new issue