Steps:
1. Read the equation as a string.
2.first pop two operand from the equation
3.If the third character is an operator we do the calculate the value for that operator and the operands.
4.Then push the calculated value in to the stack.
5.finally print the final value.
Implementation
Tuesday, January 5, 2016
Solve the given equations using Stack(Post fix Notation)
9:05 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment