![background image](http://html.mh-extra.com/html/texas-instruments/voyage-200/voyage-200_user-manual_1094515639.webp)
Programming
639
Example 3
Example 3
Example 3
Example 3
This example uses
Dialog...EndDlog
to create dialog boxes for input and output. It uses
Loop...EndLoop
to calculate the result.
Ê
Defines a dialog box for input.
Ë
Converts string entered with
Request
to an expression.
Ì
Loop calculation.
Í
Defines a dialog box for output.
Ê
©
©
Ê
Ë
Ì
©
©
©
©
Ì
Í
©
©
Í
ê
:prog3()
:Prgm
:Dialog
: Title "Enter an integer"
: Request "Integer",n
:EndDlog
:expr(n)
!
n
:0
!
temp:0
!
I
:Loop
: temp+i
!
temp
: i+1
!
I
: If i>n
: Exit
:EndLoop
:Dialog
: Title "The answer is"
: Text string(temp)
:EndDlog
:EndPrgm
Содержание 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 ...