Integer Operations
Addition
The “+” symbol should be used to add numbers or variables containing numbers.
For example: 5 + 5 = 10; 3 + 5 = 8
The “+” symbol should be used to add numbers or variables containing numbers.
For example: 5 + 5 = 10; 3 + 5 = 8
By adding the numbers 5 and 7, or adding the variables assigned to those numbers, our output is 12.
Subtraction
The “-“ symbol will be used when subtracting integers or variables containing int information.
For example: 21 – 10 = 11; 5 - 2 = 3;
The “-“ symbol will be used when subtracting integers or variables containing int information.
For example: 21 – 10 = 11; 5 - 2 = 3;
The output will then be 5.
Multiplication
The “ * “ symbol will be used when multiplying integers or variables containing int information.
For example: 5 * 5 = 25; 6 *7 = 42;
The “ * “ symbol will be used when multiplying integers or variables containing int information.
For example: 5 * 5 = 25; 6 *7 = 42;
The output will be 21