Sha256: f0d7690ff2b12127e1fc12c9bfab5c1f7dc95f1e571d267d32789678a99b45f4

Contents?: true

Size: 421 Bytes

Versions: 10

Compression:

Stored size: 421 Bytes

Contents

PROGRAM INTEGER_ARITHMETIC

!
! for rosettacode.org
!

!$INTEGER

BEGIN
  INPUT("Enter a number ",A)
  INPUT("Enter another number ",B)

  PRINT("Addition ";A;"+";B;"=";(A+B))
  PRINT("Subtraction ";A;"-";B;"=";(A-B))
  PRINT("Multiplication ";A;"*";B;"=";(A*B))
  PRINT("Integer division ";A;"div";B;"=";(A DIV B))
  PRINT("Remainder or modulo ";A;"mod";B;"=";(A MOD B))
  PRINT("Power ";A;"^";B;"=";(A^B))
END PROGRAM

Version data entries

10 entries across 7 versions & 1 rubygems

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