![Texas Instruments Titanium TI-89 User Manual Download Page 120](http://html.mh-extra.com/html/texas-instruments/titanium-ti-89/titanium-ti-89_user-manual_1094511120.webp)
Previews
117
4. Type the following program lines.
Request "Enter an integer",n
Displays a dialog box that prompts
“Enter an integer”, waits for the user
to enter a value, and stores it (as a
string) to variable n.
expr(n)
!
n
Converts the string to a numeric
expression.
0
!
temp
Creates a variable named temp and
initializes it to
0
.
For i,1,n,1
Starts a
For loop
based on variable i.
First time through the loop, i = 1. At
end of loop, i is incremented by 1.
Loop continues until i > n.
temp+i
!
temp
Adds current value of i to temp.
EndFor
Marks the end of the
For loop
.
Disp temp
Displays the final value of temp.
Type the program lines as shown.
Press
¸
at the end of each line.
Steps and keystrokes
Display
Summary of Contents for Titanium TI-89
Page 9: ...Getting Started 6 TI 89 Titanium keys Ë Ì Í Ê ...
Page 34: ...Getting Started 31 2 or D 2 B u s i n e s s D B D B Press Result ...
Page 43: ...Getting Started 40 3 0 D B D D B D Press Result ...
Page 44: ...Getting Started 41 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Page 58: ...Getting Started 55 Example Set split screen mode to TOP BOTTOM Press Result 3 B D ...
Page 70: ...Getting Started 67 ...
Page 175: ...Operating the Calculator 172 From the Keyboard ...
Page 456: ...Tables 453 ...
Page 527: ...Data Matrix Editor 524 ...