Simple Reverse Polish Notation calculator. It works with integer numbers only and the basic operators (+, -, *, /). The division result is the integer part of it.
- Read a input.
- If it is an integer (operand), push to the stack.
- If it is an operator, pop the last and second-to-last operands off the stack, do the operation and then push it back to the stack.
- If it is empty, close the program.
git clone https://github.com/crespo/reverse-polish-notation.gitcd ./reverse-polish-notationpython main.pyType a integer number or a basic operator (+ = sum, - = subtraction, * = multiplication, / = division) and ↵ Enter.When you've finished, type ↵ Enter again and the program should stop.
