TLE error.
code saved in server by name basic_calculator.cpp
Basic calculator program
Hello @singhsaurabhlps7_18d9f31919917399,
-
while(ch!=βxβ || ch!=βXβ) change this line it should be &&
-
else if(ch==β%β && b!=0) remove the condition for b, else if(ch==β%β )
-
else if(ch==β/β && b!=0) remove the condition for b, else if(ch==β/β )
Again it is showing TLE.
@singhsaurabhlps7_18d9f31919917399,
Could you pls share ide link for your code.
Also share the input you are trying to run.
@singhsaurabhlps7_18d9f31919917399,
You donβt have to take input a,b when ch is not equal to any character from this (+,-,*,/,%)
can you please correct the code.
I am not getting it what you are saying.
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.