HERE IS THE PROGRAM TO CHECK A PALINDROME NUMBER.
#include <stdio.h>
int main()
{
int number,sum,a,n;
printf("enter the number to be checked");
scanf("%d",&number);
n=number;
while(n>0)
{
a=n%10;
sum=sum*10+a;
n=n/10;
}
if(number==sum)
{
printf("the number %d is a palindrome number",sum);
}
else
{
printf("the number %d is not a palindrome number",sum);
}
}
FOR MORE PROGRAMS : CLICK HERE
FOR COMPUTER SCIENCE NOTES : CLICK HERE
Comments
Post a Comment
THANK YOU FOR COMMENTING !
PLEASE SUBSCRIBE TO OUR WEBSITE FOR LATEST UPDATES