Your program does not convert anything. It is a very simple RPN calculator that takes a single term consisting of two operands and a binary operation and calculate the results.
If you need it to take more complex RPN inputs, you need to re-design the input and calculation logic.
If you want to input infix expressions like 5+4
but keep the internal representation as an RPN-stack, you will also have to write a parser which does that.