Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Loops-Nested/Lua/loops-nested.lua
Normal file
15
Task/Loops-Nested/Lua/loops-nested.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
t = {}
|
||||
for i = 1, 20 do
|
||||
t[i] = {}
|
||||
for j = 1, 20 do t[i][j] = math.random(20) end
|
||||
end
|
||||
function exitable()
|
||||
for i = 1, 20 do
|
||||
for j = 1, 20 do
|
||||
if t[i][j] == 20 then
|
||||
return i, j
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
print(exitable())
|
||||
Loading…
Add table
Add a link
Reference in a new issue