Calculations

You’ll probably need a variable to store the result of the calculation.

You can use the arithmetical operators +, -, *, /, ^, mod.

You may also need to use some pre-defined functions.

Example 1 - Multiplication     show
Example 2 - Exponentiation     show
Example 3 - Division     show
Example 4 - Mod     show
EXTENSION: Mod quiz

Back to index

mph@ghscomputing.co.uk

Updated 25 September 2019