RosettaCodeData/Task/Loops-While/OCaml/loops-while-2.ocaml

7 lines
103 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
let rec loop n =
if n > 0 then begin
Printf.printf "%d\n" n;
loop (n / 2)
end
in loop 1024