Anonymous user
Arithmetic/Integer: Difference between revisions
→{{header|ERRE}}
Line 887:
INPUT("Enter another number ",B)
PRINT("Addition ";A;"+";B;"=
PRINT("Subtraction ";A;"
PRINT("Multiplication ";A;"
PRINT("Integer division ";A;"
PRINT("Remainder or modulo ";A;"
PRINT("Power ";A;"
END PROGRAM
</lang>
Line 898:
<pre>Enter a number ? 12
Enter another number ? 5
Addition 12 + 5 =
Subtraction 12
Multiplication 12
Integer division 12
Remainder or modulo 12
Power 12
</pre>
Truncate towards: 0
Remainder sign matches: first operand
|