Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
14
Task/Arithmetic-Integer/ReScript/arithmetic-integer.res
Normal file
14
Task/Arithmetic-Integer/ReScript/arithmetic-integer.res
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
let a = int_of_string(Sys.argv[2])
|
||||
let b = int_of_string(Sys.argv[3])
|
||||
|
||||
let sum = a + b
|
||||
let difference = a - b
|
||||
let product = a * b
|
||||
let division = a / b
|
||||
let remainder = mod(a, b)
|
||||
|
||||
Js.log("a + b = " ++ string_of_int(sum))
|
||||
Js.log("a - b = " ++ string_of_int(difference))
|
||||
Js.log("a * b = " ++ string_of_int(product))
|
||||
Js.log("a / b = " ++ string_of_int(division))
|
||||
Js.log("a % b = " ++ string_of_int(remainder))
|
||||
Loading…
Add table
Add a link
Reference in a new issue