9 lines
285 B
Plaintext
9 lines
285 B
Plaintext
x = y = 0;
|
|
read, x, y;
|
|
write, "x + y =", x + y;
|
|
write, "x - y =", x - y;
|
|
write, "x * y =", x * y;
|
|
write, "x / y =", x / y; // rounds toward zero
|
|
write, "x % y =", x % y; // remainder; matches sign of first operand when operands' signs differ
|
|
write, "x ^ y =", x ^ y; // exponentiation
|