+ 2

Why is the answer 12?

https://code.sololearn.com/wcWI3dUBrEF6/?ref=app Please I don't understand why the answer is 12. Can someone clearly explain ?

25th Sep 2021, 6:54 PM
Rawley
Rawley - avatar
2 Answers
+ 2
Equal has the high priority than + so first $b=$c will assign c value to b .(b = 2) So now it happens $a+$b => 10+2 So answer is 12 hope it helps..
25th Sep 2021, 7:07 PM
Jayakrishna 🇼🇳
+ 2
Yh a little thnks
25th Sep 2021, 7:12 PM
Rawley
Rawley - avatar