previous
|
start
|
next
A Stack-Based Calculator
A number means:
Push the number on the stack
An operator means:
Pop the top two numbers off the stack
Apply the operator to these two numbers
Push the result back on the stack
previous
|
start
|
next