+ 2
How do i solve this
>>> (-7 + 2) * (-4) Please explain how they got 20 as answer
5 ответов
+ 3
Solve the stuff in brackets first:-
(-7 + 2) = -5
now solve the rest of the expression
-5 * -4 = 20
+ 3
Thanks everyone, i appreciate.
+ 2
(-7 + 2) * (-4)
(-5) * (-4)
Negative value multiplied by negative value yields positive value, that is -5 multiplied by -4 yields 20.
+ 2
first () have higher precedence so things inside () run first
(-7+2=-5)
-5*(-4)=20
That's simple