Thread: coding

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Posts
    0
    Rep Power
    0

    coding


    Could somebody tell me how to define any number that is between 2 number entered. I know how to ask for the 2 numbers and scan them in but then how do I print for example any whole number between the 2 numbers entered.

    Thanks for any help,

    Comments on this post

    • Gran Roguismo agrees
  2. #2
  3. /(bb|[^b]{2})/

    Join Date
    Nov 2001
    Location
    Somewhere in the great unknown
    Posts
    5,163
    Rep Power
    793
    What are you wanting, a random number between the two numbers entered, or a list of numbers between the two numbers entered (easily done with a for loop) or something else?
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Posts
    0
    Rep Power
    0
    I got it figured out. You are right I needed to use a for loop.

    Thanks

IMN logo majestic logo threadwatch logo seochat tools logo