Computer Science, asked by gunjancspatil9265, 10 months ago

What will be the value of x after x=1+2*3-8/4

Answers

Answered by hirokbanik
0

Answer:

x = 5

Explanation:

Its because of operator precedence.

* and / will be calculated first, then + and -

Here, 2*3 = 6 and 8/4 = 2

So, 1 + 6 - 2 = 5

That is x = 5

Answered by priyavrat14
0

Answer:

5

Explanation:

*solving it by bodmas method

  1. division
  2. multiplication
  3. addition
  4. subtraction
Similar questions