Sha256: fb73fc1e84c8b50a7e54df51e39fb909831b6a54a1b340499c2395544a7b9f3b

Contents?: true

Size: 402 Bytes

Versions: 10

Compression:

Stored size: 402 Bytes

Contents

input "enter a number ?", a
input "enter another number ?", b

print "addition " + a + " + " + b + " = " + (a + b)
print "subtraction " + a + " - " + b + " = " + (a - b)
print "multiplication " + a + " * " + b + " = " + (a * b)
print "integer division " + a + " \ " + b + " = " + (a \ b)
print "remainder or modulo " + a + " % " + b + " = " + (a % b)
print "power " + a + " ^ " + b + " = " + (a ^ b)

Version data entries

10 entries across 7 versions & 1 rubygems

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