What happened when you tried it? Make sure you test it with several arrays containing a variety of values.
BTW hard coding the value 13 is not a good idea. Use the length of the array instead.
Type: Posts; User: Junky
What happened when you tried it? Make sure you test it with several arrays containing a variety of values.
BTW hard coding the value 13 is not a good idea. Use the length of the array instead.
int z=scoreboard[j];
if(scoreboard[j] < z)
You also need to carefully examine your code.
Lets say that the first element in the array(j is 0) is 10. That first line of code assigns 10 to z. You...