|
-8
it is A question |
|
-11
can someone tell why is it not working |
|
-11
includeincludeusing 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;} |