#!/usr/local/bin/lua52 function fizzbuzz(n) output = "" if i % 3 == 0 then output = output.."Fizz" end if i % 5 == 0 then output = output.."Buzz" end if(output == "") then output = i end return output end for i=1,30 do print(fizzbuzz(i)) end