Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
22
Task/Arithmetic-Integer/SIL/arithmetic-integer.sil
Normal file
22
Task/Arithmetic-Integer/SIL/arithmetic-integer.sil
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
readIO Enter an integer x:
|
||||
x = i
|
||||
readIO Enter an integer y:
|
||||
y = i
|
||||
print x + y =
|
||||
z = x + y
|
||||
printInt z
|
||||
print x - y =
|
||||
z = x - y
|
||||
printInt z
|
||||
print x * y =
|
||||
z = x * y
|
||||
printInt z
|
||||
print x / y =
|
||||
z = x / y // round toward zero
|
||||
printInt z
|
||||
print x % y =
|
||||
z = x % y // result retains sign of the first argument
|
||||
printInt z
|
||||
print x ^ y =
|
||||
z = x ^ y
|
||||
printInt z
|
||||
Loading…
Add table
Add a link
Reference in a new issue