How do i solve this | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do i solve this

>>> (-7 + 2) * (-4) Please explain how they got 20 as answer

16th Feb 2020, 7:45 AM
John Allen
4 Answers
+ 3
Solve the stuff in brackets first:- (-7 + 2) = -5 now solve the rest of the expression -5 * -4 = 20
16th Feb 2020, 7:52 AM
Arsenic
Arsenic - avatar
+ 3
Thanks everyone, i appreciate.
16th Feb 2020, 7:59 AM
John Allen
+ 2
(-7 + 2) * (-4) (-5) * (-4) Negative value multiplied by negative value yields positive value, that is -5 multiplied by -4 yields 20.
16th Feb 2020, 7:49 AM
Ipang
+ 2
first () have higher precedence so things inside () run first (-7+2=-5) -5*(-4)=20 That's simple
17th Feb 2020, 2:20 AM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar