xref: /freebsd/contrib/one-true-awk/testdir/p.44 (revision a90b9d0159070121c221b966469c3e36d912bf82)
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