Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 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