q7. write a program to accept a string check and display if it is a palindrome or not.
Answers
Answered by
2
Answer:
#include <string.h>
int main() {
char s[1000]; int i,n,c=0;
printf("Enter the string : ");
gets(s); n=strlen(s);
for(i=0;i<n/2;i++) {
if(s[i]==s[n-i-1]) c++;
Explanation:
mark as brilliant if u satisfai with my answer
Similar questions
Geography,
8 months ago
India Languages,
8 months ago