Sha256: 3d763301e6eca3ba205d21624d0476733c6ef5e6d7fcc616fc19b1072cede43b

Contents?: true

Size: 497 Bytes

Versions: 10

Compression:

Stored size: 497 Bytes

Contents

      INPUT "Enter the first integer: " first%
      INPUT "Enter the second integer: " second%
      
      PRINT "The sum is " ; first% + second%
      PRINT "The difference is " ; first% - second%
      PRINT "The product is " ; first% * second%
      PRINT "The integer quotient is " ; first% DIV second% " (rounds towards 0)"
      PRINT "The remainder is " ; first% MOD second% " (sign matches first operand)"
      PRINT "The first raised to the power of the second is " ; first% ^ second%

Version data entries

10 entries across 7 versions & 1 rubygems

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