4 lines
68 B
Text
4 lines
68 B
Text
|
|
let rec factorial n =
|
||
|
|
if n <= 0 then 1
|
||
|
|
else n * factorial (n-1)
|