awk/testdir/p.44
Arnold D. Robbins d6c466c367 Extract testdir.
2019-06-23 03:13:57 -06:00

8 lines
104 B
Plaintext

function fact(n) {
if (n <= 1)
return 1
else
return n * fact(n-1)
}
{ print $1 "! is " fact($1) }