Join 36000+ teachers and students using TTIO.
Starter - Modulo Magic: Watch this video and discuss! How do you think this "magical" calculation was done? Scroll down to the bottom to see the code behind this mental arithmetic.
Arithmetic operators are used with numeric values to perform common mathematical operations:
This presentation provides an overview of MOD and other operators along with trace tables. It provides examples in VB.Net which will be similar to Pseudocode.
Operators shown below
|+||Addition||x + y||Try it »|
|-||Subtraction||x - y||Try it »|
|*||Multiplication||x * y||Try it »|
|/||Division||x / y||Try it »|
|%||Modulus||x % y||Try it »|
|**||Exponentiation||x ** y||Try it »|
|//||Floor division||x // y||Try it »|