lua for each in table
-- Sample table
local myTable = {10, 20, 30, 40, 50}
-- Iterate through the elements of the table using a for loop
for key, value in ipairs(myTable) do
-- Print the key and value of each element in the table
print("Key:", key, "Value:", value)
end