September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -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" ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue