You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

15 lines
620 B

# Exercises: Parentheses and Association
## Exercise 1
The parentheses change the result here.
Multiplication (*) has a higher precedence, so is normally evaluated first. By adding parentheses to the addition (+), the order in which terms are evaluated is changed.
## Exercise 2
The parenthese do not change the result.
Parentheses surround mulitplication, but multiplication has a higher precedence, so it does not change anything.
## Exercise 3
The parentheses change the result here.
Division (\\) has a higher precedence. By adding parentheses to the addition, the order in which terms are evaluated is changed.