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