Post Top Ad

Your Ad Spot

Pages

Saturday, 8 February 2020

Write A Program To Check Number Is Pelindrome or Not

#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 Ispelindrome(int no)
{
return RevNo(no)==no;
}  

void main()

   printf("%d",Ispelindrome(1221));
}

No comments:

Post a Comment

Post Top Ad

Your Ad Spot

Pages