1. You are given an infix expression. 2. You are required to evaluate and print it's value.
1. Expression is balanced 2. The only operators used are +, -, *, / 3. Opening and closing brackets - () - are used to impact precedence of operations 4. + and - have equal precedence which is less than * and /. * and / also have equal precedence. 5. In two operators of equal precedence give preference to the one on left. 6. All operands are single digit numbers.
Input is managed for you
Value of infix expression
2 + 6 * 4 / 8 - 3