- #1
nenyan
- 67
- 0
a function: can give the index of the largest number in an array. also give the index of the second largest number, and the index of the third and the forth.
such as
a={1,2,3,5,7,99,121,3,2,24,10}
the code can give the result followed:
6,5,9,10
how to make the function?
such as
a={1,2,3,5,7,99,121,3,2,24,10}
the code can give the result followed:
6,5,9,10
how to make the function?