Operators - In a simple way they are the instructions to be performed by the application.
Example 1 +2
Here numeric 1 and 2 are operands where the instructions to them is addition.
Arithmetic Operators
Example 1 +2
Here numeric 1 and 2 are operands where the instructions to them is addition.
Arithmetic Operators
Operator | Description | Example |
---|---|---|
+ | Adds two operands | 5 + 5 will give 10 |
- | Subtracts second operand from the first | 5 - 5 will give 0 |
* | Multiply both operands | 5 * 10 will give 50 |
/ | Divide numerator by denumerator | 10 / 2 will give 5 |
% | Modulus Operator and remainder of after an integer division | B MOD A will give 0 |
^ | Exponentiation Operator | B ^ A will give 100000 |
No comments:
Post a Comment