int main()
{
int r1,r2,i,r,sum,t;
printf("Enter Ranges=\n");
scanf("%d%d",&r1,&r2);
printf("Among Range Palindrome Numbers Are\n");
for(i=r1;i<=r2;i++)
{
t=i;
sum=0;
while(t!=0)
{
r=t%10;
sum=sum*10+r;
t=t/10;
}
if(sum==i)
{
printf("%d\n",sum);
}
}
}
0 comments:
Post a Comment