let fb = fun c -> match c with | 0 -> "0" | c when c mod 15 = 0 -> "FizzBuzz" | c when c mod 5 = 0 -> "Buzz" | c when c mod 3 = 0 -> "Fizz" | _ -> string_of_int c;; let rec afb = fun l c -> match l <= c with | true -> Printf.printf "%s" (fb c) | false -> Printf.printf "%s" (fb c) ; Printf.printf "%s" "\n" ; afb l (1 + c);; let () = Scanf.scanf "%d" (fun x -> afb x 0 )