Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Arithmetic-Integer/ERRE/arithmetic-integer.erre
Normal file
19
Task/Arithmetic-Integer/ERRE/arithmetic-integer.erre
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue