+ 1

How the output is come of this code print(2 * (3 + 4)) the answer is 14 how

26th Jul 2022, 3:12 AM
CodingPrank
CodingPrank - avatar
3 Respostas
+ 5
Firstly, according to precedence of operators inner braces are solved then outer so, (2* (3+4)) // after solving inner braces 3+4 would be 7 (2*7) and now 2*7 will be 14
26th Jul 2022, 3:16 AM
Pallavi Jha
Pallavi Jha - avatar
+ 2
Uzair Khan 'Thanks' can't be best answer. 'Best answer' means answer related to question and best among other answers. Since there is only one answer for your question so that answer should be marked as 'best'. Please be fair. 'Best answer' for that so people can understand better. 'Best answer' goes on top so people first see that answer.
26th Jul 2022, 9:03 AM
A͢J
A͢J - avatar
0
Thanks
26th Jul 2022, 3:19 AM
CodingPrank
CodingPrank - avatar