3 lines
66 B
Haskell
3 lines
66 B
Haskell
fac x = if x==0 then
|
|
1
|
|
else x * fac (x - 1)
|
fac x = if x==0 then
|
|
1
|
|
else x * fac (x - 1)
|