Advertisement
Guest User

Untitled

a guest
Jun 30th, 2010
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.21 KB | None | 0 0
  1. for i = 1, 100 do
  2.    if i % 3 == 0 and i % 5 == 0 then
  3.       print "FizzBuzz"
  4.    elseif i % 3 == 0 then
  5.       print "Fizz"
  6.    elseif i % 5 == 0 then
  7.       print "Buzz"
  8.    else
  9.       print(i)
  10.    end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement