Arithmetic and brackets

Complete the previous lesson to unlock this one.

Back to the path

Arithmetic and brackets

Level 2: Values. * and / bind tighter than + and -. Brackets are how you force the paper’s order.

3 + 4 * 2 is 11, not 14 — multiply first.

Output two lines:

  1. 3 + 4 * 2 (should be 11)
  2. (3 + 4) * 2 (should be 14)