8 lines
104 B
Plaintext
8 lines
104 B
Plaintext
function fact(n) {
|
|
if (n <= 1)
|
|
return 1
|
|
else
|
|
return n * fact(n-1)
|
|
}
|
|
{ print $1 "! is " fact($1) }
|