Results 1 to 4 of 4
  1. #1
    Engineer is offline Member
    Join Date
    Aug 2010
    Location
    Egypt
    Posts
    34
    Rep Power
    0

    Default helpppppppppppppppppppppppppppppp

    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

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,679
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Engineer View Post
    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
    Your question, as well as the topic title, don't make much sense. Please edit your post and clarify your question (and change your topic title).

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    m00nchile is offline Senior Member
    Join Date
    Feb 2010
    Location
    Ljubljana, Slovenia
    Posts
    470
    Rep Power
    5

    Default

    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.

  4. #4
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •