Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
21
Task/Loops-Nested/LiveCode/loops-nested.livecode
Normal file
21
Task/Loops-Nested/LiveCode/loops-nested.livecode
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
repeat with i = 1 to 10
|
||||
repeat with j = 1 to 10
|
||||
put random(20) into aNums[i,j]
|
||||
end repeat
|
||||
end repeat
|
||||
|
||||
repeat with i = 1 to 10
|
||||
repeat with j = 1 to 10
|
||||
if aNums[i,j] = 20 then
|
||||
put true into exitLoop
|
||||
exit repeat
|
||||
end if
|
||||
end repeat
|
||||
if exitLoop then exit repeat
|
||||
end repeat
|
||||
|
||||
if exitLoop then
|
||||
put "20 found in" && i & comma & j
|
||||
else
|
||||
put "20 not found"
|
||||
end if
|
||||
Loading…
Add table
Add a link
Reference in a new issue