Sha256: dc030ee55fd231ce15de43bbd486be0a6cd148fb0e1560aba1d40aefda84e2b1

Contents?: true

Size: 262 Bytes

Versions: 10

Compression:

Stored size: 262 Bytes

Contents

def printOp
    swap print print nl
enddef

8 var a 3 var b
"a = " a printOp
"b = " b printOp

"a + b = " a b + printOp
"a - b = " a b - printOp
"a * b = " a b * printOp
"int(a / b) = " a b / int printOp
"a mod b = " a b mod printOp
"a ^ b = " a b power printOp

Version data entries

10 entries across 7 versions & 1 rubygems

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