Computer Science, asked by sharmistadebbarma, 9 months ago

Write the value that will be assigned to variable C after executing the following statement:
C = 25-5*4/2-10+4;​

Answers

Answered by Adarshthakur11
2

Answer:

C = 25 - 5 x 4 / 2 - 10 + 4 ;

= 25 - 20 / 2 - 10 + 4

= 25 - 10 - 10 + 4

= 25 - 20 + 4

= 29 - 20

= 9

Multiplication and division operator has higher precedence than addition and subtraction operator .

Hope it helps you

Similar questions