Math, asked by Rohan9240, 1 year ago

you are given an arithmetic expression which contains only (+ - * /) operators. precision of (* /) is greater than precision of(+ -). you have to evaluate the expression if 2 consecutive same priority operator occur evaluate them from left to right.

Answers

Answered by imhkp4u
0

No two signs have the same priority.

The order of precision follows the BODMAS rule acc to which,

Bracket > Of > Division > Multiplication > Addition > Subtraction.

Now as per your query to evaluate the expression if 2 consecutive same priority operator occur, then they can be simplified togetherly.

eg: 4 x 12 / 6 + 2 - 3 - 1

or, 4 x 2 + 2 - 3 - 1

or, 8 + 2 - 3 - 1

or, 10 - 3 - 1

or, 6 (Ans)

if your objective is something different from this then please let us know. Better to mention the question example.

Similar questions