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