Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
10
Task/Arithmetic-Integer/ArkScript/arithmetic-integer.ark
Normal file
10
Task/Arithmetic-Integer/ArkScript/arithmetic-integer.ark
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(let a 4)
|
||||
(let b 5)
|
||||
|
||||
(assert (= (+ a b) 9) "sum")
|
||||
(assert (= (- a b) -1) "difference")
|
||||
(assert (= (- b a) 1) "difference")
|
||||
(assert (= (* a b) 20) "product")
|
||||
(assert (= (/ a b) 0.8) "quotient")
|
||||
(assert (= (mod a b) 4) "remainder(a, b)")
|
||||
(assert (= (mod b a) 1) "remainder(b, a)")
|
||||
Loading…
Add table
Add a link
Reference in a new issue