Arithmetic, Logic and Boolean Operators

Operators let programs calculate and make logical decisions. This lesson covers arithmetic operators including DIV and MOD, and the logical operators AND, OR and NOT.

Key terms

DIV
Integer division. 10 DIV 3 gives 3.
MOD
Gives the remainder of a division. 10 MOD 3 gives 1.
AND
TRUE only if both conditions are TRUE.
OR
TRUE if at least one condition is TRUE.
NOT
Reverses a Boolean value. NOT TRUE is FALSE.

Part of Programming.