You are viewing a single comment's thread. Return to all comments →
OCaml: let rec printHWn (n : int) : _ = match n with | 0 -> () | _ -> let _ = print_string "Hello World\n" in printHWn (n - 1)
let () = let n = read_int() in printHWn 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: let rec printHWn (n : int) : _ = match n with | 0 -> () | _ -> let _ = print_string "Hello World\n" in printHWn (n - 1)
let () = let n = read_int() in printHWn n