Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement