2808 explained code solutions for 75 technologies


luaCreate array with N elements


a = {}
for i=1, 1000 do
  a[i] = 0
endctrl + c
a = {}

declares new array

for i=1, 1000 do

for loop will create 1000 elements in the array a

a[i] = 0

initialize ith element with 0 inside the loop