Sha256: 4e79cc134f51cd78dc5451841c03509c0ca51eaa40f0137c7a443807851e36c4

Contents?: true

Size: 267 Bytes

Versions: 10

Compression:

Stored size: 267 Bytes

Contents

cat("insert number ")
a <- scan(nmax=1, quiet=TRUE)
cat("insert number ")
b <- scan(nmax=1, quiet=TRUE)
print(paste('a+b=', a+b))
print(paste('a-b=', a-b))
print(paste('a*b=', a*b))
print(paste('a%/%b=', a%/%b))
print(paste('a%%b=', a%%b))
print(paste('a^b=', a^b))

Version data entries

10 entries across 7 versions & 1 rubygems

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