RosettaCodeData/Task/Arithmetic-Integer/BBC-BASIC/arithmetic-integer.basic

10 lines
491 B
Plaintext

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%