Sha256: 3fd0dac5df089a3283346fcd4d2698e80f47762c0b9d3f7bba14465c08748f93

Contents?: true

Size: 326 Bytes

Versions: 10

Compression:

Stored size: 326 Bytes

Contents

There is no input, variables have to be set in code. Format is there only for output.

set a = -17
set b = 4
echo "a+b = ".format(a+b,"%1d")
echo "a-b = ".format(a-b,"%1d")
echo "a*b = ".format(a*b,"%1d")
echo "a DIV b = ".format(floor(a/b),"%1d")
echo "a MOD b = ".format(a mod b,"%1d")
echo "a^b = ".format(pow(a,b),"%1d")

Version data entries

10 entries across 7 versions & 1 rubygems

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