Open main menu

Wikibooks β

TI-Basic 84 Programming/Input

< TI-Basic 84 Programming



Input, PRGM:I/O:1, is a command which will display a string, and will wait for a value to be entered. It will then store that value into the provided variable once ENTER is pressed. If the only argument is a variable, then a question mark will be displayed instead of the string. And if no arguments are provided, then a cursor on the graph screen will be used to define coordinates at a given location to the variables X and Y.

Syntax: InputEdit

:Input [string],''var''
  • Where string is either a literal string or string variable which is displayed to help determine appropriate input value
    • If string is not given, then a question mark is displayed in its place
    • If string is used, then var must also be used
  • Where var is a variable type of any {unverified} which data is stored to
  • If no argument is specified, the command will display a movable cursor on the graph screen, where when enter is pressed, the current X-coordinate of the cursor will be stored to the variable X, and the current Y-coordinate stored to the variable Y

Ex: With String TitleEdit

UE: 5

*The value of 5 would be stored to X.

Ex: Without String TitleEdit

:Input X

*The value of 5 would be stored to X.

Ex: Without ArgumentsEdit


*If the graph screen cursor was at 3.5 for X, and 6.2 for Y, then 3.5 would be stored to X and 6.2 stored to Y.


:Prompt var[,var2][,var3][,var4][,…varN]
  • Where var2,var3,var4, though to varN are all optional arguments. The number of arguments is only limited by available memory. There needs to be at least one argument for it to work.
    • Each argument must be a variable name.
  • For each argument, Prompt will wait while a value is entered. Once Enter is pressed, the value will be stored to the associated variable. Then Prompt will continue on to the next argument until the end.

Ex: Two NumbersEdit

:Prompt X,Y

*The X would have the value of 5 stored to it, and 7 would be stored to Y.

Ex: Other Variable TypesEdit

:Prompt Str1,L2

*This time, a string and a list were the variable types used.

Previous: Output
Next: Conditional Functions
Table of Contents: TI-Basic 84 Programming