function main () { print(fact(5)); } function fact(n) { if (n == 1) { return 1; } else { return (n * fact(n-1)); } }