CPSC 170 PreLab 9
Postfix Expressions
- Convert each infix expression below to postfix:
- (a + b) * (c - d)
- a + (b * (c - (d / e)))
- (((a + b) * c) - d) / e
- Use a stack to evaluate each postfix expression below. Show your
work.
- 10 2 / 3 - 4 5 * +
- 50 20 5 - 2 1 + * -