Can anyone explain the execution of this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Can anyone explain the execution of this code?

a=200 , b=2 , c=20, d=10, e=4 Print(a+b-c/d*e) Answer is 194.0 I want to know how they got the answer

14th May 2020, 3:40 PM
Gayathri Ramalingam
2 Answers
+ 2
I can try to make it simple--> Higher priority of operator () Bracket * Multiplication / Division Then + Addition - substitute ///* Same order's operators read from left to right *///
14th May 2020, 4:04 PM
⁣𓆩 Anкΐτ soℓคnкΐ ♣️
⁣𓆩 Anкΐτ soℓคnкΐ ♣️ - avatar
0
I have tried using operater precendence but the answer which I arrived is not the correct one. Can anyone help me in solving le calculation part? (Print statement)
16th May 2020, 8:22 AM
Gayathri Ramalingam