Basic calculator TLE!

#include
using namespace std;
int main()
{
char ch;
long long int N1,N2;
do
{
cin>>ch;
switch(ch)
{
case’+’:cin>>N1>>N2;
cout<<N1+N2<<endl;
break;
case’-’:cin>>N1>>N2;
cout<<N1-N2<<endl;
break;
case’’:cin>>N1>>N2;
cout<<N1
N2<<endl;
break;
case’/’:cin>>N1>>N2;
if(N2>0)
cout<<N1/N2<<endl;
break;
case’%’:cin>>N1>>N2;
if(N2>0)
cout<<N1%N2<<endl;
break;
case’x’:
case’X’: break;
default:
cout<<“Invalid operation.Try again.”<<endl;

	}
}while(ch!='x'&&ch!='X');
return 0;

}

output is correct but its showing time limit exceecded.
what to do.

Hey
How many cases are working fine?
Also, can you post your code in a Coding Blocks IDE link?

i ran it in codeblocks.
output is correct.
but in codingblocks ide its showing TIME LIMIT EXCEEDED(TLE!).

Hey
can you post your code in a Coding Blocks IDE link?

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.