9
Answers

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

Kintesh Patel

Kintesh Patel

13y
8.4k
1
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)