where am i wrong in this code gven below ?
Problem :- Basc calculator
solution:-
#include
using namespace std;
int main() {
char ch;
cin>>ch;
int a,b,c,flag=0;
do{
if(ch==β+β)
{cin>>a>>b;
c=a+b;
cout<<endl<<c;
flag=1;
}
else if(ch==β-β)
{cin>>a>>b;
c=a-b;
cout<<endl<<c;
flag=1;
}
else if(ch==ββ)
{
cin>>a>>b;
c=ab;
cout<<endl<<c;
flag=1;
}
else if(ch==β/β)
{
cin>>a>>b;
c=a/b;
cout<<endl<<c;
flag=1;
}
else if(ch==β%β)
{
cin>>a>>b;
c=a%b;
cout<<endl<<c;
flag=1;
}
else if(ch==βXβ || ch==βxβ)
{
flag=1;
break;
}
else
{
cout<<βInvalid characterβ;
flag=1;
}
}while(flag=0);
return 0;
}