Sha256: 6dec353667a4cead1cee535c871b92fc9da277c8b3640fc5299f271d67447963

Contents?: true

Size: 182 Bytes

Versions: 10

Compression:

Stored size: 182 Bytes

Contents

a <- (read)
b <- (read)
prn "sum: " a+b
prn "difference: " a-b
prn "product: " a*b
prn "quotient: " a/b
prn "integer quotient: " (int a/b)
prn "remainder: " a%b
prn "exponent: " a^b

Version data entries

10 entries across 7 versions & 1 rubygems

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