September Morn Update

This commit is contained in:
Ingy döt Net 2019-09-12 10:33:56 -07:00
parent 4e2d22a71d
commit aac6731f2c
6856 changed files with 141342 additions and 21127 deletions

View file

@ -1,5 +1,10 @@
# 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" ;;
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)