WAP to input 20 words and check whether they are palindrome word or not. Also count and print number of palindrome words ...solve in process
Answers
Answered by
1
Answer:
#include<stdio.h>
#incllude<conio.h>
void main()
int i=0,int n,reverse=0,rem,temp;
print f("enter input number");
for (I=0;i<=n;i++)
scanf("%d",I);
temp=i ;
while (I!=0)
{
rem=n%10;
reverse=reverse*10+rem;
temp=n/10;
}
if(reverse==temp)
{
printed("%d is a palindrome.",n);
}
else
{
printed("%d is not a palindrome.",n);
}
return 0;
}
Similar questions