Sha256: c7c8d31579b303350efc10d92033079b62147ac26acc741a9774dc430cef5379

Contents?: true

Size: 364 Bytes

Versions: 10

Compression:

Stored size: 364 Bytes

Contents

include get.e

integer a,b

a = floor(prompt_number("a = ",{}))
b = floor(prompt_number("b = ",{}))

printf(1,"a + b = %d\n", a+b)
printf(1,"a - b = %d\n", a-b)
printf(1,"a * b = %d\n", a*b)
printf(1,"a / b = %g\n", a/b) -- does not truncate
printf(1,"remainder(a,b) = %d\n", remainder(a,b)) -- same sign as first operand
printf(1,"power(a,b) = %g\n", power(a,b))

Version data entries

10 entries across 7 versions & 1 rubygems

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