Breaking

palindrome program in c

Solution is here 👇👇


#include<stdio.h>
#include<conio.h>
void main()
{clrscr();
int a,rev=0,b,rem=0;


printf(" enter a number of a ");
scanf("%d",&a);
b=a;
while(b!=0)
{
  rem=b%10;
  rev=rev*10+rem;
  b=b/10;
}
if(a==rev)
{
  printf("%d is pelindrom number",a);
}
else
{
  printf("%d is not a pelindrom number",a);
}

       getch();
       }