Loops on 48GX


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?



A simple answer would be:

Place d,e,f,a,b,c on the stack, and do the following loop:





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;-)



Thanks Raymond. I'll try to get hold of a manual.




much valuable information, including manuals,

can be found on www.hpcalc.org


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

Forum Jump: