Loops on 48GX V Green Junior Member Posts: 11 Threads: 5 Joined: Nov 2006 04-25-2005, 03:47 AM I'm looking for some help re loops within a program. Here's the scenario: A few steps into a program the 48GX performs a long mathematical procedure. Several steps later I want it to perform the same procedure using new numbers by looping back through it. How do I do this? As a simple example: 1, 2, 3, 4, 5 and 6 are stored as a, b, c, d, e and f. How do I get the program to add a,b and c, then add d,e and f using a loop? Thanks. Raymond Del Tondo Posting Freak Posts: 1,841 Threads: 54 Joined: Jul 2005 04-25-2005, 04:29 AM A simple answer would be: Place d,e,f,a,b,c on the stack, and do the following loop: 1 2 START + + NEXT The code between the START and the NEXT statements will be executed two times. This is a RTFM-type, so for more details I'd suggest reading the manual;-) Raymond V Green Junior Member Posts: 11 Threads: 5 Joined: Nov 2006 04-25-2005, 05:07 AM Thanks Raymond. I'll try to get hold of a manual. VG Raymond Del Tondo Posting Freak Posts: 1,841 Threads: 54 Joined: Jul 2005 04-25-2005, 05:53 AM Hi, much valuable information, including manuals, can be found on www.hpcalc.org Raymond « Next Oldest | Next Newest »

 Possibly Related Threads... Thread Author Replies Views Last Post Loops in Prime Geoff Quickfall 4 622 10-02-2013, 10:45 AM Last Post: Geoff Quickfall 39gii Tutorial: FOR loops is posted Eddie W. Shore 0 370 03-16-2013, 12:13 PM Last Post: Eddie W. Shore Using loops and SOLVE together Matt Agajanian 5 648 03-25-2012, 09:02 PM Last Post: bill platt Loops of Addition benchmark for the 41CL Monte Dalrymple 8 781 08-19-2010, 09:48 PM Last Post: Wlodek Mier-Jedrzejowicz Loops of addition Palmer O. Hanson, Jr. 7 684 06-21-2010, 05:26 AM Last Post: Don Shepherd loops V Green 3 441 02-12-2005, 03:21 AM Last Post: Vieira, Luiz C. (Brazil) 17BII and 19BII indefinite loops ? Vincent Weber 0 256 09-10-2004, 03:52 AM Last Post: Vincent Weber

Forum Jump: