Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

Github repo cloud-examples: https://github.com/sagemath/cloud-examples

Views: 7955
License: MIT
1
(* Fibonacci function *)
2
3
let rec fib n =
4
if n < 2 then 1 else fib (n - 1) + fib (n - 2)
5
;;
6
7
print_int (fib ( 10 ));
8
print_newline();
9
10