Logo 
Search:

C++ Programming Forum

Ask Question   UnAnswered
Home » Forum » C++ Programming       RSS Feeds

Home Work

  Asked By: Ahmed    Date: Apr 22    Category: C++ Programming    Views: 518
  

Write a function isNumPalindrome that checks to see if the input is a palindrome or not. If the input is a palindrome, the functions returns true, else false.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Abhishek Singh     Answered On: May 14



logic for it..//


scanf(%d,&s);
i=s;

while(r!=0)
{
r=r\10;
s=s+r%10
}
if(s==i)
{
return 0;
]else
return 1;

 
Didn't find what you were looking for? Find more on Home Work Or get search suggestion and latest updates.




Tagged: