In question Basic Calculator my code is printing same output as in expected output but still getting a WA. please explain

code:
#include<bits/stdc++.h>
using namespace std;
int main() {
char c;
cin>>c;
while(c!=‘X’&&c!=‘x’){
if(c!=’’&&c!=’/’&&c!=’+’&&c!=’-’&&c!=’%’){
cout<<“Invalid operation. Try again.”<<endl;
while(c!=’
’&&c!=’/’&&c!=’+’&&c!=’-’&&c!=’%’&&c!=‘x’&&c!=‘X’)
cin>>c;
}
else{
int x,y;
cin>>x>>y;
if(c==’’)
cout<<x
y<<endl;
else if(c==’+’)
cout<<x+y<<endl;
else if(c==’/’)
cout<<x/y<<endl;
else if(c==’%’)
cout<<x%y<<endl;
else if(c==’-’)
cout<<x-y<<endl;

        cin>>c;
    }
}
return 0;

}

Please Help I am still stuck in this question

kunal save your code to https://ide.codingblocks.com/ and then share the url

Hey Kunal,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.