#include<stdio.h>
#include<conio.h>
void main()
{
int rem,revNum=0,num,start,end,temp;
printf("\nEnter Two Numbers : ");
scanf("%d%d",&start,&end);
for(num=start;num<=end;num++)
{
temp=num;
revNum=0;
while(temp)
{
rem=temp%10;
revNum=revNum*10+rem;
temp=temp/10;
if(num==revNum)
printf("\nPALINDROME NUMBER: %d ",num);
}
}
getch();
}
No comments:
Post a Comment