07-for.lua 165 B

123456789101112131415
  1. for i = 1, 10 do
  2. print(i)
  3. end
  4. -- Bucle con saltos.
  5. for i = 1, 10, 2 do
  6. print(i)
  7. end
  8. local tbl = { 'Hola', 'Mundo', 2023 }
  9. for i = 1, 3 do
  10. print(tbl[i])
  11. end