Advertisement
Houshalter

FizzBuzz.lua

Jan 28th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.14 KB | None | 0 0
  1. for i=1,100 do
  2.     io.write('\n'..i..'\r')
  3.     if math.mod(i,3)==0 then io.write 'Fizz' end
  4.     if math.mod(i,5)==0 then io.write 'Buzz' end
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement