You are viewing a single comment's thread. Return to all comments →
OCaml Solution :- let rec print n = if (n > 0) then begin print_endline "Hello World"; print (n - 1) end;;
let () = let n = read_int () in print n;;
Seems like cookies are disabled on this browser, please enable them to open this website
Hello World N Times
You are viewing a single comment's thread. Return to all comments →
OCaml Solution :- let rec print n = if (n > 0) then begin print_endline "Hello World"; print (n - 1) end;;
let () = let n = read_int () in print n;;