Using Loops To Repeat A Group Of Commands - Texas Instruments Voyage 200 User Manual

Graphing calculator
Hide thumbs Also See for Voyage 200:
Table of Contents

Advertisement

Because a
command is unconditional (it always branches to the specified label), it
Goto
is often used with an
:If x>5
Ê
:
Goto GT5
Ë
:Disp x
:--------
:--------
:Lbl GT5
:Disp "The number was > 5"
Ê
If x>5, branches directly to label GT5.
Ë
For this example, the program must include commands (such as Stop) that prevent Lbl GT5
from being executed if x

Using Loops to Repeat a Group of Commands

Using Loops to Repeat a Group of Commands
Using Loops to Repeat a Group of Commands
Using Loops to Repeat a Group of Commands
To repeat the same group of commands successively, use a loop. Several types of loops
are available. Each type gives you a different way to exit the loop, based on a conditional
test.
F2 Control Toolbar Menu
F2 Control Toolbar Menu
F2 Control Toolbar Menu
F2 Control Toolbar Menu
To enter most of the loop-related commands,
use the Program Editor's „
menu.
Programming
command so that you can specify a conditional test. For example:
If
5.
{
toolbar
Control
610

Advertisement

Table of Contents
loading

This manual is also suitable for:

Voyage 200 - voyage 200 calculator

Table of Contents