11 lines
124 B
Plaintext
11 lines
124 B
Plaintext
|
|
function factorial(n) {
|
|
if (eq(n, 1)) {
|
|
1
|
|
} else {
|
|
times(n, factorial(minus(n, 1)))
|
|
}
|
|
}
|
|
|
|
print(factorial(4))
|