ACCORDING to me something went to be wrong in sample input and output of question
*
1
2
/
4
2
+
3
2
;
X
when i press ; char then program will terminated but take next char in sample case X THEN print invalid operation try again
Basic Calculator
@khemchandrs
The program is to be terminated when we get a ‘x’ or a ‘X’ .When we give a ’ ; ’ (semicolon) character to it , it prints “Invalid Character , try again”. After that we give it a ‘X’ and the loop stops as per our condition and our program ends. This is what is supposed to happen with the sample testcase.