B
This commit is contained in:
parent
e5e8880e41
commit
518da4a923
1019 changed files with 15877 additions and 0 deletions
9
Task/Arithmetic-Integer/BBC-BASIC/arithmetic-integer.bbc
Normal file
9
Task/Arithmetic-Integer/BBC-BASIC/arithmetic-integer.bbc
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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%
|
||||
Loading…
Add table
Add a link
Reference in a new issue