1#!/usr/bin/lua 2function fact(n) 3 if n == 0 then 4 return 1 5 else 6 return n * fact(n - 1) 7 end 8 end
View as plain text