diff --git a/main.lua b/main.lua new file mode 100644 index 0000000..46ca4ba --- /dev/null +++ b/main.lua @@ -0,0 +1,14 @@ +for i=1, 10, 1 do + local out = "" + if(i % 3 == 0) then + out = out .. "Fizz" + end + if(i % 5 == 0) then + out = out .. "Buzz" + end + if(out == "") then + io.write(tostring(i).."\n") + else + io.write(out.."\n") + end +end \ No newline at end of file