- Push the ‘(‘ and operators onto stack and output all numbers.
- If the scanned element is ‘)’, pop and output from stack till an ‘(‘ is encountered.
- Repeat steps 1 and 2, then pop and output the stack till it is empty.
- For popping out elements first click on pop then click on given options to perform the operation.
Observations: