i have 1 error and i cannot fix it ,here is my code
Code:#include<iostream> #include<string> using namespace std; int main() { char strn[10]; cout<<"Enter the string:"<<endl; cin.getline(strn,10); int len=strlen(strn); bool answer=true; for(int i=0;i=len/2;i++) { if(answer=strn) { answer=true; cout<<"Palindrome"<<endl; } } else { answer=false; cout<<"Not Palindrome"<<endl; } cin.get(); return 0; }