xref: /freebsd/contrib/one-true-awk/testdir/p.44 (revision 9768746ba83efa02837c5b9c66348db6e900208f)
1function fact(n) {
2	if (n <= 1)
3		return 1
4	else
5		return n * fact(n-1)
6}
7{ print $1 "! is " fact($1) }
8