try to do the process continuously, like after the first operation, ask again the user whether he/she wants to do another operation.

or
create a GUI for you calculator. that would be a...