We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aac1b0 commit 04c30a1Copy full SHA for 04c30a1
Algorithms/Math/Fibonacci.fs
@@ -4,4 +4,10 @@ module Fibonacci =
4
let rec PrintSerie (one: int) (two: int) =
5
let fibo = one + two
6
System.Console.WriteLine fibo
7
- PrintSerie two fibo
+ PrintSerie two fibo
8
+
9
+ let rec NthFibonacci (n: int): int =
10
+ match n with
11
+ | 0 -> 0
12
+ | 1 -> 1
13
+ | n -> NthFibonacci (n-1) + NthFibonacci (n-2)
0 commit comments