1.2.3: understand the need for and be able to follow and write algorithms that use arithmetic operators (addition, subtraction, division, multiplication, modulus, integer division, exponentiation), relational operators (equal to, less than, greater than, not equal to, less than or equal to, greater than or equal to) and logical operators (AND, OR, NOT)
Keyword | Definition |
---|---|
- | subtraction arithmetic operator to take one value from another |
* | multiplication arithmetic operator to times one value by another |
** | exponent arithmetic operator to raise a value to a power |
/ | division arithmetic operator to divide one value by another |
// | integer division arithmetic operator to divide ignoring the remainder |
% | modulus arithmetic operator to give the remainder after dividing |
+ | addition arithmetic operator to add two values together |
arithmetic operator | symbol or word which represents a mathematical calculation with two values |
boolean expression | question which can be calculated to give an answer of either true or false |
logical operator | symbol or word used to combine or change boolean expressions |
relational operator | symbol or word which represents a comparison between two values |