Sha256: 4082c89ca624c6ebd371e5fa6377aac15480851421a60d8606708793a44082d5

Contents?: true

Size: 317 Bytes

Versions: 20

Compression:

Stored size: 317 Bytes

Contents

procedure Test( a, b )
   ? "a+b", a + b
   ? "a-b", a - b
   ? "a*b", a * b
   // The quotient isn't integer, so we use the Int() function, which truncates it downward.
   ? "a/b", Int( a / b )
   // Remainder:
   ? "a%b", a % b
   // Exponentiation is also a base arithmetic operation
   ? "a**b", a ** b
   return

Version data entries

20 entries across 7 versions & 1 rubygems

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