main.ml (155B)
1 let num = Scanf.scanf " %d" (fun x -> x) in 2 let rec fib nm = if nm <= 1 then 1 else (fib (nm-1) + fib(nm-2)) in 3 print_int (fib num); print_newline ()
algorithmsAlgorithm implementations | |
| git clone git://git.laack.co/algorithms.git | |
| Log | Files | Refs | README |