Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
11
Task/Integer-comparison/ReScript/integer-comparison.res
Normal file
11
Task/Integer-comparison/ReScript/integer-comparison.res
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