Sha256: a25bffc1a075f1666e3efda56f41eb0ca1646c260627c9ff03d629102c830d96

Contents?: true

Size: 279 Bytes

Versions: 10

Compression:

Stored size: 279 Bytes

Contents

int a = 7, b = 5;

println(a + " + " + b + " = " + (a + b));
println(a + " - " + b + " = " + (a - b));
println(a + " * " + b + " = " + (a * b));
println(a + " / " + b + " = " + (a / b)); //Rounds towards zero
println(a + " % " + b + " = " + (a % b)); //Same sign as first operand

Version data entries

10 entries across 7 versions & 1 rubygems

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