Skip to content

Instantly share code, notes, and snippets.

@kaworun
Created January 23, 2013 15:05
Show Gist options
  • Save kaworun/4607598 to your computer and use it in GitHub Desktop.
Save kaworun/4607598 to your computer and use it in GitHub Desktop.
for i = 1, 100 do
if i % 3 == 0 and i % 5 == 0 then
print("FizzBuzz")
elseif i % 3 == 0 then
print("Fizz")
elseif i % 5 == 0 then
print("Buzz")
else print(i)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment