Kintesh Patel

Kintesh Patel

  • NA
  • 5
  • 9.6k

sorting in to Array values within range of two elements of 2nd Array

Dec 9 2010 4:48 AM
Hello,

I am trying to sort every element of Array1 in to different categories.

Array1 = 20,25,30,50,80,100
Array2 = 0,25,50,75,100

so every element of Array must be in rage of Array2.

the end result will be:
  0 - 25 = 20
25 - 50 = 25,30
50 - 75 = 50
75 - 100 = 80,100

can any one help me with this.

thanks you.


Answers (9)