Understanding A simple mathematical addition operation

115 Views Asked by At

I was just doing a simple maths operation:

$s = 158 + 46 \times -1: \Rightarrow s = 112$

and

$s = (158 + 46) \times -1:\Rightarrow s = -204$

In the latter case $158 + 48$ gets calculated first and then multiplied by $-1$, but in the former case I.E.

$s = 158 + 46 \times -1:\Rightarrow s = 112$

Why the result $112$ ?

2

There are 2 best solutions below

2
On BEST ANSWER

158 + 46 * -1 is interpreted as 158 + (46 * (-1)) since multiplication precedes addition and the minus sign precedes multiplication and addition. See Order of operations.

0
On

BODMAS Rule:-

BODMAS stands for Brackets, Order, Divide, Multiply, Add, Subtract

Since multiplication comes first

s= 158+46×−1 => s= 158-46 => s= 112. :)