Results 1 to 4 of 4
- 02-11-2011, 12:47 PM #1
Member
- Join Date
- Aug 2010
- Location
- Egypt
- Posts
- 34
- Rep Power
- 0
- 02-11-2011, 12:59 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
- 02-11-2011, 01:02 PM #3
Senior Member
- Join Date
- Feb 2010
- Location
- Ljubljana, Slovenia
- Posts
- 470
- Rep Power
- 4
So what you want to do is find numbers that are palindromes? What are your attempts so far? Asking people to do your homework is frowned upon here, so post what code you have so far and ask more specific questions.
Ever seen a dog chase its tail? Now that's an infinite loop.
- 02-11-2011, 02:17 PM #4
Have you done this on paper? Every program that requires some form of algorithm should be done on paper first to help you visualize what is happening. Write the steps in english, draw pictures, use graph paper. Anything that will help you nail down the steps that need to be taken. Only then can you write any code at all, and at that point the code becomes obvious. While it becomes easier to do this stuff in your head over time, even the best (arguably only the best) take the time to draw things out.


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks