Sha256: b68a75af67d3b6d3cd9d9f98755104ba896c821477b7f97ba18a7dcc1a4fdb2a

Contents?: true

Size: 174 Bytes

Versions: 10

Compression:

Stored size: 174 Bytes

Contents

def arithmetic(a :int, b :int) {
  return `$\
   Sum:        ${a + b}
   Difference: ${a - b}
   Product:    ${a * b}
   Quotient:   ${a // b}
   Remainder:  ${a % b}$\n`
}

Version data entries

10 entries across 7 versions & 1 rubygems

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