How can I get the high value numerals to the lowest and also get its original index values?
If two(or more) numbers comes same, both should count.
Ex. 2 & 4
here 25 is the biggest value, we should know it is the biggest and also its index ie, 12
likewise 21 is the 2nd biggest value, we should know it is the 2nd biggest and also should know its index = 10
likewise 18 is the 2nd biggest value, we should know it is the 2nd biggest and also should know its index = 11
.
.
.
4 & its index value
Another 4 & its index value (There are two 4's in the array, likewise there are two 2's in the array)
.
.
.
n number. Here the number with lowest value and what its index is!
In reply to In an array get the high value numerals to the lowest and also get its original index values by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |