Complete Video Learning
Table of Contents
#include<conio.h>
#include<stdio.h>
void main()
{ int i, rem, rev=0, temp, start, end;
printf("Enter the lower limit: ");
scanf("%d",&start);
printf("Enter the upper limit: ");
scanf("%d",&end);
printf("Palindrome numbers between %d and %d are: ",start,end);
for(i=start;i<=end;i++)
{ temp=i;
while(temp>0) {
rem=temp%10;
temp=temp/10;
rev=rev*10+rem; }
if(i==rev)
printf("%d ",i);
}
getch();
}
Enter the lower limit: 10
Enter the upper limit: 25
Palindrome numbers between 10 and 25 are: 11 22
SHOW YOUR SUPPORT FOR NIELITBHU..!!
Dear reader, thank you for joining us. Readers like you are an inspiration for us to pursue NIELITBHU. We need your support or cooperation to further empower NIELITBHU and reach NIELITBHU more people in every corner of the country. Your every support is invaluable to our future.