Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,150 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,890 people online right now. Registration is fast and FREE... Join Now!




palindrome of numbers

 
Reply to this topicStart new topic

palindrome of numbers

aravkar
post 5 Oct, 2008 - 05:43 AM
Post #1


New D.I.C Head

*
Joined: 5 Oct, 2008
Posts: 1

i want the source to check whether a no. is palindrome or not? a number not a string!!!!
User is offlineProfile CardPM

Go to the top of the page

gabehabe
post 5 Oct, 2008 - 06:10 AM
Post #2


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,402



Thanked 94 times

Dream Kudos: 2625

Expert In: Dingleberries

My Contributions


Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is offlineProfile CardPM

Go to the top of the page

s0pnadisht0
post 5 Oct, 2008 - 08:10 AM
Post #3


New D.I.C Head

*
Joined: 25 May, 2008
Posts: 1

Well, take the input and convert it to a string using library functions like itoa() or sprintf()
Then compute it as usual..Hope you got it smile.gif
User is offlineProfile CardPM

Go to the top of the page

gabehabe
post 5 Oct, 2008 - 09:02 AM
Post #4


Working Girl.

Group Icon
Joined: 6 Feb, 2008
Posts: 5,402



Thanked 94 times

Dream Kudos: 2625

Expert In: Dingleberries

My Contributions


C++ solution: http://www.dreamincode.net/code/snippet2574.htm
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/21/08 01:25PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month