Skip to content

Instantly share code, notes, and snippets.

@kaworun
Created January 23, 2013 06:22
Show Gist options
  • Save kaworun/4602562 to your computer and use it in GitHub Desktop.
Save kaworun/4602562 to your computer and use it in GitHub Desktop.
x, y, z = 0, 0, 0
-- while
while x <=10 do
x = x + 1
print(x)
end
-- break
while y <= 10 do
y = y + 10
print(y)
if y == 5 then
break
end
end
-- repeat
repeat
z = z + 1
print(z)
until z >= 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment