#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
Follow
Me On Social Media :-
INSTA photography page :- https://www.instagram.com/photo_mania_hub/
Twitter link : - https://twitter.com/ApurbaKhanra199
Facebook page link (Crazy Coders) :-https://www.facebook.com/codercrazy/?modal=admin_todo_tour
Insta photography link :- https://www.instagram.com/photo_mania_hub/
Facebook link :- https://www.facebook.com/profile.php?id=100009747586288
FB photography page :-
https://www.facebook.com/photomaniahub/?modal=admin_todo_tour
For tech related videos visit my other website :- https://apurbatechinfo.blogspot.com/
0 Comments