answersLogoWhite

0


Best Answer

#include
int main()
{
int num, r, sum=0, temp;
print f("enter a number:");
scan f("%d",&num);
temp=num;
while(n!=0)
{
r=num%10;
num=num/10;
sum=sum*10+r;
}
if(temp==sum)
print f("%d is a palindrome",temp);
else
print f("%d is not a palindrome",temp);
return 0;
}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you explain a palindrome code?
Write your answer...
Submit
Still have questions?
magnify glass
imp