mirror of
https://github.com/rgleichman/glance.git
synced 2024-11-29 21:40:48 +03:00
Add fact.hs
This commit is contained in:
parent
327699a1b3
commit
24e3e23f28
4
examples/fact.hs
Normal file
4
examples/fact.hs
Normal file
@ -0,0 +1,4 @@
|
||||
factorial x =
|
||||
if x == 0
|
||||
then 1
|
||||
else x * factorial (x - 1)
|
Loading…
Reference in New Issue
Block a user