News for hackers. Stuff that matters.
Re:6÷2(1+2)=? by braum on Sunday March 17, 2013 @07:20PM (#5391525)
I was taught to handle parenthesis first before multiplication or division so the answer is clear to me to be 1.
Re:6÷2(1+2)=? by andrewmunsell on Sunday March 17, 2013 @07:28PM (#5391568)
Well, is the implied multiplication technically part of the parenthesis, though? I've always been taught the stuff inside the parenthesis takes precedence, but outside is irrelevant because it's not technically "part" of the parenthesis statement.

It's like how programming works:

6 / 2 * add(1, 2)

This would obviously evaluate to 9, because the "add" function would simply return a value and the rest of the statement would be evaluated from left to right. In this case, the first 2 is not related to the "add" function in any way.

Re:6÷2(1+2)=? by robryan on Sunday March 17, 2013 @07:24PM (#5391549)
You handle the contents of the parenthesis first. 2(3) is just shorthand for 2*3 so you would handle the division and multiplication in the order given.