Sha256: 67525d6b0d3d8b05a5db3004aac217a57a2d58390e0a3a8fbd94c8b516efe67b

Contents?: true

Size: 396 Bytes

Versions: 10

Compression:

Stored size: 396 Bytes

Contents

OpenConsole()
 
Define a, b

Print("Number 1: "): a = Val(Input())
Print("Number 2: "): b = Val(Input())

PrintN("Sum:        " + Str(a + b))
PrintN("Difference: " + Str(a - b))
PrintN("Product:    " + Str(a * b))
PrintN("Quotient:   " + Str(a / b)) ; Integer division (rounding mode=truncate)
PrintN("Remainder: " + Str(a % b))
PrintN("Power:      " + Str(Pow(a, b)))
 
Input()
 
CloseConsole()

Version data entries

10 entries across 7 versions & 1 rubygems

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