mirror of
https://github.com/rgleichman/glance.git
synced 2024-09-11 15:05:41 +03:00
5 lines
68 B
Haskell
5 lines
68 B
Haskell
factorial x =
|
|
if x == 0
|
|
then 1
|
|
else x * factorial (x - 1)
|