Quote:
Originally Posted by thEsp
Code:
new Highest = wood[ 0 ]
new id;
for( new i = 1; i < sizeof wood; i++ )
{
if( wood[ i ] > Highest){
Highest = wood[ i ]
id = i;
}
}
wood[id] // array index with highest value
|
Also, rename thread title to something like: Find the highest number in array.
__________________