/*write a c program to read a string and check whether it is a palindrome or not. output the given string also with suitable messages. */ #include #include #include int main() { char s1[25],s2[25]; int i,j; printf("\n Enter the first string:\n"); scanf("%s",s1); printf("\n Enter the second string:\n"); scanf("%s",s2); printf("\n The first string is %s",s1); printf("\n The second string is %s",s2); i=0; while(s1[i]!='\0') i++; j=0; while(s2[j]!='\0') { s1[i+j]=s2[j]; j++; } s1[i+j]='\0'; printf("\n The concatenated string is %s",s1); return 0; }