When two different operators are used in an expression, precedence tells which one is done first.
Higher precedence is done before lower precedence.
When the same operator is used twice in the same expression, associativity tells which one is done first. Left associativity - perform operations from left to right. Right associativity - perform operations from right to left. Multiplication, division, and remainder have the same precedence, which is higher than addition and subtraction. These five operators are all left associative.