Thread: Easy question
View Single Post
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 07-19-2019 , 13:43   Re: Easy question
Reply With Quote #4

Quote:
Originally Posted by thEsp View Post
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.
__________________

Last edited by Relaxing; 07-20-2019 at 14:11. Reason: HamletEagle & Bugsy fault
Relaxing is offline