0

[solved]Doubt during challenge

Probably it's a dumb question, but during a challenge this question showed up and the correct answer is 65... How? 🤔😓 Could someone explain to me how to get this result? Of course I answered wrongly 225. https://code.sololearn.com/cHY8bCjlUdJl/?ref=app

7th Sep 2020, 3:48 AM
Tamara Raquel da Silva
Tamara Raquel da Silva - avatar
3 Respuestas
+ 21
The thing here to be noted is operator precedence. * has higher precedence than +. In expression, 10 + 5 * 10 + 5, Multiplication is evaluated first. So it will be 10 + 50 + 5. Now normal addition will be performed and answer will be 65.
7th Sep 2020, 3:53 AM
Nova
Nova - avatar
+ 1
Nova thank you so much
7th Sep 2020, 3:55 AM
Tamara Raquel da Silva
Tamara Raquel da Silva - avatar
0
How can i link html code to a programming language as C++?
11th Dec 2020, 9:08 PM
Fanlight 😎
Fanlight 😎 - avatar