# Answer of $5 – 0 \times 3 + 9 / 3 =$

According to order of operations the answer should be $\mathbf{2}$
But Google and Wolfram calculates as 8

This is last proccess: $5-0+3$

This is how I think: $5-(0+3)$

This is how Google answers: $(5-0)+3$

So, question is which operation is first $+$ or $-$?

#### Solutions Collecting From Web of "Answer of $5 – 0 \times 3 + 9 / 3 =$"

You proceed from left to right down the hierarchy.
$$5- 0\cdot3 + 9/3 = 5 – 0 + 3 = 5 + 3 = 8.$$
You make the mistake of distributing the $-$ to two terms in the absence of parentheses.

The operations + and – have the same priority, therefore google is right: $a – b + c$ is read as $(a-b) + c$.

The $0$ is meant to “confuse” but if you write things in a very explicit $+,\times$ only notation it gets clearer:

\begin{align} &5-0\times 3+9/3 =\\ &5 + (-1)\times 0\times 3 + 9/3 =\\ & 5 + 0 + 3 = 8 \end{align}

Remember that $a-b$ is actually $a+(-1)b$, and multiplication takes precedence over addition, so $(-1)\times 0 + 3$ is not the same as $(-1)\times(0+3)$.

$\times$ and $\div$ are higher precedence than $+$ and $-$, but each are associated left-to-right. First, the multiplication and division. Next, the leftmost addition/subtraction. Finally, the last addition.
$$\begin{array}{c} 5-\color{#C00000}{0\times3}+\color{#C00000}{9/3}\\ \color{#C00000}{5-0}+3\\ \color{#C00000}{5+3}\\ 8 \end{array}$$

$$5-(0+3)=5-0-3=2$$
but
$$(5-0)+3=5-0+3=8$$
There’s no priority between $+$ and $-$, but most people prefer to start from right to do the calculation.