Sha256: 392859264852061cd1d7fea9b1a686ad3e008fbc59b9a2c582b4e4fcf0d4a672

Contents?: true

Size: 549 Bytes

Versions: 10

Compression:

Stored size: 549 Bytes

Contents

<syntaxhighlight lang="quackery ">  $ "Please enter two integers separated by a space. "
  input quackery
  2dup say "Their sum is:              " +    echo cr
  2dup say "Their difference is:       " -    echo cr
  2dup say "Their product is: "        " *    echo cr
  2dup say "Their integer quotient is: " /    echo cr
  2dup say "Their remainder is:        " mod  echo cr
       say "Their exponentiation is:   " **   echo cr
  cr
  say "Quotient rounds towards negative infinity." cr
  say "Remainder matches the sign of the second argument."

Version data entries

10 entries across 7 versions & 1 rubygems

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