Palindrome
      Palindrome a number which on reversing results into the same number for e.g. 525 on reversing it is the same number i.e. 525
 /*
	http://www.ProbCOMP.com
	
	Palindrome a number which on reversing results into the same number for e.g. 525 
	on reversing it is the same number i.e. 525
 */
 
 #include<stdio.h>
 
 void palindrome(int num)
 {
	int m=0,t;
	t=num;
	while(num>0)
	{
		m=m*10+num%10;
		num=num/10;
	}
	if(t==m)
		printf("%d is a palindrome",t);
	else
		printf("%d is not a palindrome",t);
}

void main()
{
	int num;
	printf("enter the number: ");
	scanf("%d",&num);
	printf("\n");
	palindrome(num);
}									

Download Program
Did You Know ?
IP address is a numerical label that is assigned to devices participating in a computer network. Read More