become expert | help | login
refer a friend - earn nickels!!
 advanced
Ask iit jee aieee pet cbse icse state board community Discussion Response Post to: Write a program in C to find whether the number is a palindrome or not.
Forum Index -> Computer Science -> View Full Question originally posted here on IIT-JEE / AIEEE community   
Email  
Author Message
HIMANSHU JAIN (376)

Olaaa!! Perrrfect answer. 62  [95 rates]

HIMANSHU JAIN's Avatar

total posts: 267    
Offline

Store the number in a string.

Reverse the string.

And just compare the two strings.

If they are equal then number is palindrome..

Do post again if ther's any doubt.


Himanshu Jain P.E.C. http://jainhim.blogspot.com/
  this reply:   2 points  (with Olaaa!! Perrrfect answer.   in 1   votes   )     [?]
 
You have to be logged on to rate
  
 
Sponsored Links
Free Exam Papers ?
unit, model, solved papers
IIT, Medical, CBSE. Get Free Now!

vriti.com/Scholarship