want help in A Code To Get All Numbers Between X And Y That Can Be Read From Left And Right With The Same Value
Example : X : 1 ,,, Y : 20
Sooo Answer Is : 1 2 3 4 5 6 7 8 9 11
Printable View
want help in A Code To Get All Numbers Between X And Y That Can Be Read From Left And Right With The Same Value
Example : X : 1 ,,, Y : 20
Sooo Answer Is : 1 2 3 4 5 6 7 8 9 11
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.
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.