Sha256: 89e0c4aea2cbd6204d3d002eb0ff87588cb6c801ab8e71b64be8de22a920e89b

Contents?: true

Size: 285 Bytes

Versions: 10

Compression:

Stored size: 285 Bytes

Contents

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

Version data entries

10 entries across 7 versions & 1 rubygems

Version Path
zettacode-0.1.7 files.zettacode/arithmetic.integer/yorick.txt
zettacode-0.1.6 files.zettacode/arithmetic.integer/yorick.txt
zettacode-0.1.6 files.zettacode2/arithmetic.integer/yorick.txt
zettacode-0.1.5 files.zettacode/arithmetic.integer/yorick.txt
zettacode-0.1.5 files.zettacode2/arithmetic.integer/yorick.txt
zettacode-0.1.4 files.zettacode/arithmetic.integer/yorick.txt
zettacode-0.1.4 files.zettacode2/arithmetic.integer/yorick.txt
zettacode-0.1.3 files.zettacode/arithmetic.integer/yorick.txt
zettacode-0.1.2 files.zettacode/arithmetic.integer/yorick.txt
zettacode-0.1.1 zettacode.files/arithmetic.integer/yorick.txt