How do you solve two variables of 10+5-2 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do you solve two variables of 10+5-2

Sum1=50+10 sum2=sum1+6 Sum3=sum1+sum2

11th Mar 2019, 10:28 PM
Dawda B. Baldeh
2 Answers
+ 4
you can use parenthisis to control the order of operation
11th Mar 2019, 11:37 PM
D_Stark
D_Stark - avatar
+ 4
D_Stark is right, you can group an expression with parenthesis to guide the output. The precedence in order of operations is evaluated from left to right based on PEMDAS ()^*/+- parenthesis exponentiation multiplication division addition subtraction
12th Mar 2019, 12:07 AM
boneSpider
boneSpider - avatar