How do you evaluate #2+3*4#?
Perform multiplication first, and then addition. Thus, the correct result is 14.
The order of operations, often remembered via the mnemonic device "Please excuse my dear Aunt Sally" (PEMDAS, for Parenthesis, Exponent, Multiplication & Division, Addition & Subtraction), details the order in which one should perform operations in an expression.
Typically multiplication and division are done together because either one can be expressed in terms of the other (e.g. one could express dividing something by 2 as multiplying by
With this being the case, let's return to our initial expression:
We have no parenthesis or exponents, so we move to multiplication/division:
And finally addition: