Post Reply 
Interesting little loop optimization exercise
05-15-2015, 02:29 AM
Post: #5
RE: Interesting little loop optimization exercise
(05-15-2015 01:42 AM)Paul Dale Wrote:  
(05-14-2015 08:27 PM)Dave Britten Wrote:  I did a relatively straight-forward GW-BASIC program on my 200LX, which has FOR loops nested 8 deep.

Why would you need more than five nested loops?


Pauli

Five loops that step through the combinations of coins, then three loops inside that to look for sums of 30 and 40. Nothing too fancy, but it runs pretty quick with a bit of optimization.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Interesting little loop optimization exercise - Dave Britten - 05-15-2015 02:29 AM



User(s) browsing this thread: 1 Guest(s)