mirror of https://gitlab.com/ita1024/waf
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
296 B
OCaml
21 lines
296 B
OCaml
|
|
open Printf;;
|
|
|
|
open Somemodule;;
|
|
|
|
(* coin coin ( ) ( ( (* ) ) ) ( ) muahha open nono;; *) *)
|
|
(* ( *)
|
|
|
|
let rec fib n =
|
|
if n < 1 then 1
|
|
else if n == 1 then 1
|
|
else fib(n-1) + fib(n-2);;
|
|
|
|
for i=0 to 10 do
|
|
Somemodule.pprint "next";
|
|
Printf.printf " %d %d\n" i (fib i)
|
|
done;;
|
|
|
|
print_newline();;
|
|
|