MY CODE IS NOT WORKING. PLEASE FIND THE ERROR

#include
using namespace std;
int calci(char a,int a1,int a2)
{
if (a ==’+’)
{
return a1+a2;
}
else if (a==’-’)
{
return a1-a2;
}
else if (a==’’)
{
return a1
a2;
}
else if (a==’/’|| a==’%’)
{
return a1/a2;
}
}
int main ()
{ int a1,a2;
char a;
cin>>a;
cin>>a1>>a2;
if (a!=’+’||’-’||’*’||’/’||’%’||β€˜x’||β€˜X’)
{
cout<<β€œInvalid Operation”;
}
else
{
for(a!=β€˜x’||a!=β€˜X’)
{
cout<<calci(a,a1,a2);
cin>>a;
continue;
}
}

return 0;

}

hi @arnavsinghal1234_e8bdbaa2ef8e20fb
refer this https://ide.codingblocks.com/s/643691

hi @arnavsinghal1234_e8bdbaa2ef8e20fb
I hope its clear now??

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.

hello i have changes the code

it is working on vs code but not here

hi @arnavsinghal1234_e8bdbaa2ef8e20fb,
either see this code https://ide.codingblocks.com/s/643691
or u please share our updated code link bysaving on CB online IDE β€”> http://ide.codingblocks.com/

i have saved it pls check

@arnavsinghal1234_e8bdbaa2ef8e20fb send me the link please

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.