View Single Post
masraum masraum is online now
Back in the saddle again
 
masraum's Avatar
 
Join Date: Oct 2001
Location: Central TX west of Houston
Posts: 57,053
Quote:
Originally Posted by fred cook View Post
Order of operation should be multiplication, division, addition and then subtraction.
56-24/3+12 divide 24 by3 equals 8. Add 8 + 12 to get 20. Subtract 20 from 56 leaves 36!
Meh, there is only multiplication and addition. division is multiplication and subtraction is just addition of a negative.
Quote:
Originally Posted by Bill Verburg View Post
the correct answer is 60


no,
first rule is left to right
multiplication and division have the same hierarchical position, so you do them in order from the left to the right
addition and subtraction have the same hierarchical position, so you do then is order left to right
56 - 28 ÷ 3 + 12
56 - 8 + 12
48 + 12
60

if the teacher wanted any other result parenthesis would be needed to be explicitly placed
Quote:
Originally Posted by ckissick View Post
But you're not adding 8+12 to get twenty. You're adding -8 + 12 to get 4.
What those guys ^ said
__________________
Steve
'08 Boxster RS60 Spyder #0099/1960
- never named a car before, but this is Charlotte.
'88 targa SOLD 2004 - gone but not forgotten
Old 10-30-2016, 05:30 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #28 (permalink)