practice.lua 199 B

123456789101112131415161718192021
  1. #!/usr/bin/lua
  2. a = "hello"
  3. print (a .. " world")
  4. if a == "hello" then
  5. print("Good")
  6. else
  7. print("bad")
  8. end
  9. local i = 1
  10. while i < 10 do
  11. print(i)
  12. end
  13. i = 1
  14. repeat
  15. i = i + 1
  16. until i == 5