Sha256: 50ada3ccffcec62e90caa11044e0e393a1f016b744d075d4b41966ae4017366e

Contents?: true

Size: 313 Bytes

Versions: 10

Compression:

Stored size: 313 Bytes

Contents

{{trans|Python}}
print "Number 1: "
x = int(input())
print "Number 2: "
y = int(input())

println format("Sum: %d", x + y)
println format("Difference: %d", x - y)
println format("Product: %d", x * y)
println format("Quotient: %f", x / y)

println format("Remainder: %d", x % y)
println format("Power: %d", x ^ y)

Version data entries

10 entries across 7 versions & 1 rubygems

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