Raised This Month: $ Target: $400
 0% 

Easy question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 07-19-2019 , 13:43   Re: Easy question
Reply With Quote #5

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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode