become expert | help | login
refer a friend - earn nickels!!
 advanced

  Ask & Discuss Questions with Community & Experts

Moderation Team
  500 chars left
Ask experts Expert Question: Write a program in C to find whether the number is a palindrome or not.
Reply Forum Index -> Computer Science originally posted here on IIT-JEE / AIEEE community   
Email  
Author Message
amit (0)

Olaaa!! Perrrfect answer. 0  [0 rates]

amit's Avatar

total posts: 30    
Offline
Write a program in C to find whether the number is a palindrome or not.
    
HIMANSHU JAIN (376)

Olaaa!! Perrrfect answer. 62  [95 rates]

HIMANSHU JAIN's Avatar

total posts: 270    
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
  
 
reply Forum Index -> Computer Science
Go to: 
Sponsored Links
Preparing for CAT 2010?
solved, model paper, prelim monitor
online, study material. Buy Online!

goBSkool.com/CAT-MAT

Preparing for MAT 2010?
solved, model paper, prelim monitor
online, study material. Buy Online!

goBSkool.com/CAT-MAT

Free Exam Papers ?
unit, model, solved papers
IIT, Medical, CBSE. Get Free Now!

vriti.com/Scholarship