You are viewing a single comment's thread. Return to all comments →
F# solution
open System let rec f n = match n with | 1 -> 0 | 2 -> 1 | n -> f (n - 1) + f (n - 2) [<EntryPoint>] let main argv = Console.ReadLine() |> int |> f |> Console.WriteLine 0
Seems like cookies are disabled on this browser, please enable them to open this website
Fibonacci Numbers
You are viewing a single comment's thread. Return to all comments →
F# solution