How to do this program without using RETURN statement

i have done this basic calculator program but i have used RETURN statement … how to do it without using RETURN statement

my code: https://ide.codingblocks.com/s/71819

in this code, you can use break statement instead of return…but it will hardly make a difference as you don’t have to perform any further computations after encountering character x.

Hi Nipun,

As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.