Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Algorithms/Math/Fibonacci.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ module Fibonacci =
let rec PrintSerie (one: int) (two: int) =
let fibo = one + two
System.Console.WriteLine fibo
PrintSerie two fibo
PrintSerie two fibo

let rec NthFibonacci (n: int): int =
match n with
| 0 -> 0
| 1 -> 1
| n -> NthFibonacci (n-1) + NthFibonacci (n-2)