Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Integer-comparison/OCaml/integer-comparison.ocaml
Normal file
10
Task/Integer-comparison/OCaml/integer-comparison.ocaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue