Check multiplication precedence with and without parentheses
Example input
2 + 3 * 4
(2 + 3) * 4Expected result
14
20Calculate each line as a separate expression. Multiplication is evaluated before addition in the first case. Parentheses move the addition first in the second. Writing the expression down makes this difference easier to check than relying on a remembered sequence of button presses. Review supported function names when bringing an expression from another programming or mathematics system.