RosettaCodeData/Task/Logical-operations/OCaml/logical-operations.ml

5 lines
149 B
OCaml
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
let print_logic a b =
Printf.printf "a and b is %B\n" (a && b);
Printf.printf "a or b is %B\n" (a || b);
Printf.printf "not a is %B\n" (not a)