Overview Of Entering A Program - Texas Instruments TI-89 Manual Book

Ti ti-89: user guide
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Overview of Entering a Program

Entering and Editing
Program Lines
Note: Use the cursor pad to
scroll through the program
for entering or editing
commands. Use ¥ C or
¥ D to go to the top or
bottom of a program,
respectively.
Note: Entering a command
does not execute that
command. It is not executed
until you run the program.
Entering Multi-
Command Lines
Entering Comments
Tip: Use comments to enter
information that is useful to
someone reading the
program code.
282
Chapter 17: Programming
A program is a series of commands executed in sequential
order (although some commands alter the program flow). In
general, anything that can be executed from the Home screen
can be included in a program. Program execution continues
until it reaches the end of the program or a Stop command.
On a blank template, you can begin entering commands for your new
program.
Program name, which you
specify when you create a
new program.
Enter your program
commands between Prgm
and EndPrgm.
All program lines begin
with a colon.
You enter and edit program commands in the Program Editor by
using the same techniques used to enter and edit text in the Text
Editor. Refer to "Entering and Editing Text" in Chapter 18.
After typing each program line, press ¸. This inserts a new blank
line and lets you continue entering another line. A program line can
be longer than one line on the screen; if so, it will wrap to the next
screen line automatically.
To enter more than one command on the same line, separate them
with a colon by pressing 2 Ë.
¦
A comment symbol (
) lets you enter a remark in a program. When
you run the program, all characters to the right of
Description of the
program.
Description of expr.
To enter the comment symbol, press:
¦
¥ d
TI.89:
2
TI.92 Plus:
X
— or —
¦
Press „ and select
:prog1()
:Prgm
:¦ Displays sum of 1 thru n
:Request "Enter an integer",n
:expr(n)! n:¦ Convert to numeric expression
:------
¦
9:
¦
are ignored.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents