22 lines
344 B
Text
22 lines
344 B
Text
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
|