#include<stdio.h>
int main()
{
    int upper , lower , rem=0 , sum =0, temp , i ;

    printf(" Enter the upper limit : ");
    scanf("%d",&upper);

    printf(" \n Enter the lower limit : ");
    scanf("%d",&lower);

    for(i=upper ; i<=lower ; i++)
    {
        temp = i;
        sum=0;

        while( temp > 0)
        {
            rem = temp %10 ;
            sum = (sum*10) + rem ;
            temp = temp /10 ;
        }
        if(i==sum)
            printf(" %d ",i);
    }
    return 0;
}

OUTPUT :

Enter the upper limit : 150
Enter the lower limit : 200

151 161 171 181 191 

For Other Programs Visit The WebSite:-   https://www.techapurba.com/

Follow Me On Social Media :-


For tech related videos visit my other website :- https://apurbatechinfo.blogspot.com/