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