Previews
128
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
Содержание Voyage 200
Страница 36: ...Getting Started 36 D B D B Press Result ...
Страница 45: ...Getting Started 45 3 0 D B D D B D Press Result ...
Страница 46: ...Getting Started 46 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Страница 60: ...Getting Started 60 B D Press Result ...
Страница 139: ...Previews 139 8 Complete the operation Press 2 d Steps and keystrokes Display 5 f 2 ...
Страница 181: ...Operating the Calculator 181 From the Keyboard From the Keyboard From the Keyboard From the Keyboard ...
Страница 453: ...Differential Equation Graphing 453 ...
Страница 468: ...Tables 468 ...
Страница 515: ...Split Screens 515 Note Both Top Bottom and Left Right splits use the same methods to select an application ...
Страница 777: ...Activities 777 ...