5 lines
54 B
CoffeeScript
5 lines
54 B
CoffeeScript
fac = (n) ->
|
|
if n <= 1
|
|
1
|
|
else
|
|
n * fac n-1
|