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