[Solved] Why the expression in java not following BODMAS rule? [closed]


Remember that + and – have the same precedence, so they are evaluated left-to-right (+ and – are both left-associative operators). So, 90 – 9 + 10 = 81 + 10 = 91.

solved Why the expression in java not following BODMAS rule? [closed]