Loops on 48GX
#1

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.

#2

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

#3

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

VG

#4

Hi,

much valuable information, including manuals,

can be found on www.hpcalc.org

Raymond



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

Forum Jump: