Comments

it is A question

can someone tell why is it not working

include

include

using namespace std;

int main() { string a,b; int c; cin>>a; cin>>b; for(int i = 0 ; i<a.length(); i++) { if(a[i] == b[((b.length()) -1 — (i))]) { c = 1; } else { c = 0; } }

if(c)
{
    cout<<"YES";
}
else
{
    cout<<"NO";
}


return 0;

}