How? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

How?

How does 5-2*3+3=2?

17th Feb 2020, 3:13 AM
Niki96521
Niki96521 - avatar
18 Answers
17th Feb 2020, 3:22 AM
A͢J
A͢J - avatar
+ 5
Niki96521 No. According to math calculation order is 1 - Division 2 - Multiplication 3 - Addition 4 - Substraction = 5 - 2 * 3 + 3 = 5 - 6 + 3 = 8 - 6 = 2
17th Feb 2020, 3:31 AM
A͢J
A͢J - avatar
+ 5
5-6+3=2 -1+3=2 2=2
17th Feb 2020, 4:00 AM
Cmurio
Cmurio - avatar
+ 3
5 - (2*3) + 3 = 5 - 6 + 3 (5 - 6) + 3 = -1 + 3 -1 + 3 = 2 ANSWER = 2
17th Feb 2020, 3:20 AM
Jax
Jax - avatar
+ 3
Using BODMAS RULE first brackets are solved then Division and then multiplication followed by addition and subtraction. Therefore, -2*3 = -6 and then -6+3 = -3 and -3+5 = 2. This is how you will get 2.
17th Feb 2020, 11:09 AM
Tanmay Gupta
Tanmay Gupta - avatar
+ 2
2 * 3 = 6 5 - 6 + 3 = 2
17th Feb 2020, 3:20 AM
Denise Roßberg
Denise Roßberg - avatar
+ 2
Elaborating on what Denise Roßberg said First "*" operator will be evaluated (due to its higher precedence) So 2*3=6 Now the expression is 5-6+3 As now all the operators are of same precedence, so the it will be evaluated from left to right That's why it is treated as (5-6)+3=2
17th Feb 2020, 3:23 AM
Arsenic
Arsenic - avatar
17th Feb 2020, 3:28 AM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Niki96521 No. Just use your calculator.
17th Feb 2020, 3:30 AM
Denise Roßberg
Denise Roßberg - avatar
+ 1
k i got it
17th Feb 2020, 3:32 AM
Niki96521
Niki96521 - avatar
+ 1
Follow BODMAS/BIDMAS 2*3 = 6 5-6 = -1 -1 + 3 = 2
18th Feb 2020, 9:21 PM
3.14
3.14 - avatar
0
ok
17th Feb 2020, 3:30 AM
Niki96521
Niki96521 - avatar
0
Bodmas Bracket Division Multiplication Addition Substraction 5-2*3+3=2 5-6+3=2 5-3=2 2=2
17th Feb 2020, 8:01 PM
Gagan Verma
Gagan Verma - avatar
0
5-2*3+3=2 5-6+3=2 -1+3=2 2=2
18th Feb 2020, 1:34 PM
Suman Saurav Thakur
Suman Saurav Thakur - avatar
0
See: 5-2*3+3=5-6+3 =-1+3 =2 In computer programming mathematical operation is different. * And / are of same level and high priority + And - are of same level and low priority than upper operators If same level operators are in single line then execution will be from single direction which is right to left.
18th Feb 2020, 4:54 PM
Akash kumar
Akash kumar - avatar
- 1
Everyone here literally provided you a path. Learn basic order of operations, please.
18th Feb 2020, 12:13 PM
Private [GER]
Private [GER] - avatar
- 4
but technically 18 is mathmaicaly correct
17th Feb 2020, 3:29 AM
Niki96521
Niki96521 - avatar
- 5
but 5-2=3 3+3=6 3*6=18
17th Feb 2020, 3:22 AM
Niki96521
Niki96521 - avatar