2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 14:28:05 +02:00
LaTeX-examples/documents/Programmierparadigmen/scripts/haskell/fakultaet-akkumulator.hs

5 lines
111 B
Haskell
Raw Normal View History

2014-02-02 13:49:19 +01:00
fakAcc n acc = if (n==0)
then acc
else fakAcc (n-1) (n*acc)
2014-02-01 15:32:13 +01:00
fak n = fakAcc n 1