#include<stdio.h>
#include<conio.h>
void main()
{
int a,x=0,b;
puts("Enter the number");
scanf("%d",&a);
b=a;
while(a!=0)
{
x=(x*10)+(a%10);
a=a/10;
}
if(b==x)
puts("Number is palindrome");
else
puts("Number is not palindrome");
}
Comments
Post a Comment