awk/testdir/p.44

8 lines
104 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
function fact(n) {
if (n <= 1)
return 1
else
return n * fact(n-1)
}
{ print $1 "! is " fact($1) }