Module:Sandbox/QuinticFormula
Appearance
-- Module with a FizzBuzz function
-- Lua is fun!
local p = {}
function p.fizzbuzz(frame)
local t = {}
for i = 1, 100 do
if i % 15 == 0 then
t[i] = "FizzBuzz<br>"
elseif i % 5 == 0 then
t[i] = "Buzz<br>"
elseif i % 3 == 0 then
t[i] = "Fizz<br>"
else
t[i] = i .. "<br>"
end
end
return table.concat(t)
end
return p