lunar_wave/test_vectors/fizz_buzz.lua

12 lines
182 B
Lua

for i = 1, 50 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