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