#include
using namespace std;
int main() {
char ch;
int a,b;
while(1){
cin>>ch;
switch(ch)
{
case β+β:cin>>a>>b;
cout<<a+b<<endl;
break;
//
case 'β:cin>>a>>b;
cout<<ab<<endl;
break;
case β-β:cin>>a>>b;
cout<<a-b<<endl;
break;
//
case β/β:cin>>a>>b;
cout<<a/b<<endl;
break;
//
case β%β:cin>>a>>b;
cout<<(a%b)<<endl;
break;
case βXβ:
goto p;
case βxβ:
goto p;
default:cout<<βInvalid operation. Try againβ;
}
}
p:
return 0;
}
Plz help me i don't know why i am not geting output
sir from where i will get link
Go to ide.codingblocks.com. Paste your code there. Then go to File->Save . After that you can copy the url and paste it here.
sir u havenβt reply me
me plz tell me what is wrong in my both code