ITS MY CODE LINK PLEASE HELP
Basic calculator only two test case passed
Hi @Diwyanshu
In your code before you are entering the while loop you have not taken ch from user, so before while loop place cin>>ch and delete it from starting of while loop. Also the condition should be && (and) instead of || (or). Because if you use || and then you enter ch==‘x’ then still ch!=‘X’ so you will again enter the loop. And last there is missing break in default case.
Here is your corrected code :