Impossible evaluation

closed account (EwCjE3v7)
Exercise: Parenthesize the following expr to show how it is evuluated.
 
  12 / 3 * 4 + 5 * 15 + 24 % 4 / 2


Can`t solve it, can someone help me with it, otherwise show me the answer

this is the way i think it should evuluate
(12 / (3 * 4)) + (5 * 15) + (24 % (4 / 2))

Okay after exploding my head I got it :D

((12 / 3) * 4) + (5 * 15) + (24 % (4 / 2))

But I don`t understand why 12/3 would be done before the * sign

Can someone explain? isnt it *,/,%,+,-

EDIT: Disch explained in another post, thank you
Last edited on
Topic archived. No new replies allowed.