//Program to check whether the entered number is Palidrone or not.
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int num,r,n=0,temp;
float s;
char c;
clrscr();
printf("\n Enter the number: ");
scanf("%d",&num);
temp=num;
while(temp>0)
{
r=temp%10;
temp=temp/10;
n=n*10+r;
}
if(num==n)
printf("entered number is palidrone");
else
printf("entered number is not palidrone");
getch();
}
#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int num,r,n=0,temp;
float s;
char c;
clrscr();
printf("\n Enter the number: ");
scanf("%d",&num);
temp=num;
while(temp>0)
{
r=temp%10;
temp=temp/10;
n=n*10+r;
}
if(num==n)
printf("entered number is palidrone");
else
printf("entered number is not palidrone");
getch();
}