3 lines
37 B
Erlang
3 lines
37 B
Erlang
|
|
fac(1) -> 1;
|
||
|
|
fac(N) -> N * fac(N-1).
|