1 2 3 4 5 6 7 8 9 10
function fact(n) if n == 0 then return 1 else return n * fact(n - 1) end end -- print out comment print(fact(4))