Computer Science, asked by AskerforSolver, 1 year ago

write a program to accept a word and check whether it is a special world or a palindrome word

Answers

Answered by yogeshyaman
1
#include<stdio.h>
#include<conio.h>
void main()
{
int n,rem,rev=0;
clrscr();
printf("Enter n digit number\n");
scanf("%d",&n);
while(n>0)
{
rem = n%10;
rev = rev*10 + rem;
n = n /10;
}
if( rev = n)
{
printf("%d is palindrome \n",rev);
}
else
{
printf("%d is special\n", rev);
}
getch();
}

AskerforSolver: it is a program for pallindrome number i am looking for pallindrome word
Similar questions