Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Integer-comparison/ReScript/integer-comparison.re
Normal file
11
Task/Integer-comparison/ReScript/integer-comparison.re
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
let my_compare = (a, b) => {
|
||||
if a < b { "A is less than B" } else
|
||||
if a > b { "A is greater than B" } else
|
||||
if a == b { "A equals B" }
|
||||
else { "cannot compare NANs" }
|
||||
}
|
||||
|
||||
let a = int_of_string(Sys.argv[2])
|
||||
let b = int_of_string(Sys.argv[3])
|
||||
|
||||
Js.log(my_compare(a, b))
|
||||
Loading…
Add table
Add a link
Reference in a new issue