RosettaCodeData/Task/Loops-Do-while/OCaml/loops-do-while-1.ocaml
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

7 lines
111 B
Text

let rec loop i =
let i = succ i in
Printf.printf "%d\n" i;
if i mod 6 <> 0 then
loop i
in
loop 0