Sha256: beda0fdbcedae2cb6743c1df12fa2cecb7e1ac5de3f0026818c408861e17a14b

Contents?: true

Size: 319 Bytes

Versions: 10

Compression:

Stored size: 319 Bytes

Contents

procedure main()
writes("Input 1st integer a := ")
a := integer(read())
writes("Input 2nd integer b := ")
b := integer(read())

write(" a + b = ",a+b)
write(" a - b = ",a-b)
write(" a * b = ",a*b)
write(" a / b = ",a/b, " rounds toward 0")
write(" a % b = ",a%b, " remainder sign matches a")
write(" a ^ b = ",a^b)
end

Version data entries

10 entries across 7 versions & 1 rubygems

Version Path
zettacode-0.1.7 files.zettacode/arithmetic.integer/icon}}_and_{{header|unicon.txt
zettacode-0.1.6 files.zettacode/arithmetic.integer/icon}}_and_{{header|unicon.txt
zettacode-0.1.6 files.zettacode2/arithmetic.integer/icon}}_and_{{header|unicon.txt
zettacode-0.1.5 files.zettacode/arithmetic.integer/icon}}_and_{{header|unicon.txt
zettacode-0.1.5 files.zettacode2/arithmetic.integer/icon}}_and_{{header|unicon.txt
zettacode-0.1.4 files.zettacode/arithmetic.integer/icon}}_and_{{header|unicon.txt
zettacode-0.1.4 files.zettacode2/arithmetic.integer/icon}}_and_{{header|unicon.txt
zettacode-0.1.3 files.zettacode/arithmetic.integer/icon}}_and_{{header|unicon.txt
zettacode-0.1.2 files.zettacode/arithmetic.integer/icon}}_and_{{header|unicon.txt
zettacode-0.1.1 zettacode.files/arithmetic.integer/icon}}_and_{{header|unicon.txt