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:
3 + 4 * 2(should be 11)(3 + 4) * 2(should be 14)
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:
3 + 4 * 2 (should be 11)(3 + 4) * 2 (should be 14)