May 2017
Intermediate to advanced
280 pages
6h 2m
English
Arithmetic expressions in any language comprise operands and operators. For reference, x and y are used as operands having values 10 and 20, respectively. The following table shows the precedence order:
|
Operator |
Description |
|
** |
Exponent: Performs exponential (power) calculations on operators |
|
* |
Multiplication: Multiplies values on either side of the operator |
|
/ |
Division: Divides the left-hand operand by the right-hand operand |
|
% |
Modulus: Divides the left-hand operand by the right-hand operand and returns the remainder |
|
+ |
Addition: Adds values on either side of the operator |
|
- |
Subtraction: Subtracts the right-hand operand from the left-hand operand |
In an arithmetic expression, ...
Read now
Unlock full access