Answers for "haskell factorial funcyion"

1

factorial program in haskell

factorial :: Integer -> Integer
factorial 0 = 1
factorial n = n * factorial (n - 1)
Posted by: Guest on July-30-2021

Browse Popular Code Answers by Language