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