lunar_wave/test_vectors/fizz_buzz.lua

12 lines
191 B
Lua

for i = 1, 50 do
if i % 3 == 0 and i % 5 == 0 then
print (i, "FizzBuzz")
elseif i % 3 == 0 then
print (i, "Fizz")
elseif i % 5 == 0 then
print (i, "Buzz")
else
print (i)
end
end