Post Top Ad

Your Ad Spot

Pages

Sunday, 9 February 2020

Write A Program To Print Pelindrome Number UP TO N times


#include<stdio.h>
#include<conio.h>

int RevNo(int no)

     int i,res=0;

 for(i=no;no;i++)
  {
  res=res*10+no%10;
  no=no/10;
  
  }
  return res;
}
int IspelindromeUpton(int n)
{
  int i;
for(i=1;i<n;i++)
{
   if(RevNo(i)==i)
   printf("%d \n",i);
       
}
}  

void main()

   IspelindromeUpton(220);
}

No comments:

Post a Comment

Post Top Ad

Your Ad Spot

Pages