Computer Science, asked by 2006abhisheksingh, 4 days ago

q7. write a program to accept a string check and display if it is a palindrome or not.​

Answers

Answered by Aishitemasu
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