I am trying to keep track of the the scores of the lowest numbers and if I find the lowest scores of those players I don\'t want them to play again in the next round. I have got
Do 2 separate loops instead. One to find lowest number, second to collect indexes.
int minValue = 1000000; // for(int i =0; i< player.length; i++){ if(player[i] < minValue){ minValue = player[i]; } } int j =0; for(int i =0; i< player.length; i++){ if(player[i]==minValue){ min[j]=i; j++; } }