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