September 2017 Update

This commit is contained in:
Ingy döt Net 2017-09-23 10:01:46 +02:00
parent bba7bfd280
commit ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions

View file

@ -1,10 +1,5 @@
let my_compare a b =
if a < b then "A is less than B"
else if a > b then "A is greater than B"
else if a = b then "A equals B"
else "cannot compare NANs"
let () =
let a = read_int ()
and b = read_int () in
print_endline (my_compare a b)
# let max a b =
if a!= b then
if a>b then Printf.printf "%d is greater than %d" a b else Printf.printf "%d is less than %d" a b
else
print_string "numbers are equal" ;;