2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/documents/Programmierparadigmen/scripts/haskell/fibonacci.hs

4 lines
87 B
Haskell
Raw Normal View History

fib n
| (n == 0) = 0
| (n == 1) = 1
| otherwise = fib (n - 1) + fib (n - 2)