Created a flag variable that keeps track when a particular operation has been completed.
In regards with the issue that was occurring, it is solved and now the calculator no longer appends the new input values after the previous operation's input and executes the operations successfully.
Created a flag variable that keeps track when a particular operation has been completed. In regards with the issue that was occurring, it is solved and now the calculator no longer appends the new input values after the previous operation's input and executes the operations successfully.