please tell me how to code for basic calculator
Basic calculator 4
@Ayushi21 hey ayushi use a while loop and . inside a loop use switch -case statement your code will only terminate when you will provide X and x. basically there will for cases
add
sub
multiply
division
for taking symbols use char ch
and taking numbers as input take int n1,n2.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.