C++ Program for Palindrome
int main() { int n; char a[20]; cout<<"enter how many digit string u want 2 enter"; cin>>n; cout<<"enter the string"; cin>>a; for(inti=0;i<=n;i++) { for(int j=n;j>=0;j--) if (a[i]==a[j]) s=0; else s=1; } if(s==0) cout<<"no.is palindrome "; else cout<<"no. is not palindrome"; getch() return 0; }