A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 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