runguard: warning: timelimit exceeded (wall time): aborting command
runguard: warning: command terminated with signal 15
Showing this error in basic calculator
hi @discobot pelase send the code also
for sending code
go to ide.codingblocks.com
copy paste
save (ctrl + s)
send the url of page
Hi! To find out what I can do, say @discobot display help
.
@discobot or u can refer
#include<iostream>
using namespace std;
int main() {
int a,b,c;
char ch;
do
{
cin>>ch;
if((ch=='X')||(ch=='x'))
{
break;
}
else if(ch=='+' || ch=='-' || ch=='*' || ch=='/' || ch=='%')
{
cin>>a>>b;
switch(ch)
{
case '+':c=a+b;
break;
case '-':c=a-b;
break;
case '*':c=a*b;
break;
case '/':c=a/b;
break;
case '%':c=a%b;
break;
}
cout<<c<<endl;
}
else
{
cout<<"Invalid operation. Try again."<<endl;
}
}
while(1);
return 0;
}