Arithmetic/Integer: Difference between revisions

Added BBC BASIC
(→‎{{header|PARI/GP}}: explain division)
(Added BBC BASIC)
Line 220:
@set /A C=%D%
@echo %D% = %C%</lang>
 
=={{header|BBC BASIC}}==
<lang bbcbasic> INPUT "Enter the first integer: " first%
INPUT "Enter the second integer: " second%
PRINT "The sum is " ; first% + second%
PRINT "The difference is " ; first% - second%
PRINT "The product is " ; first% * second%
PRINT "The integer quotient is " ; first% DIV second% " (rounds towards 0)"
PRINT "The remainder is " ; first% MOD second% " (sign matches first operand)"
PRINT "The first raised to the power of the second is " ; first% ^ second%</lang>
 
=={{header|bc}}==