### 25.2.2 Input

##### Creating input windows.

The input or Input command prompts the user for the value of a variable.

- input takes an arbitrary number of commands:

  vars, a sequence of variable names, each one optionally preceded by a string.

- input(vars) brings up a box where the user can enter a value for each variable.

  If a variable is preceded with a string, then that string will be the prompt for the variable, otherwise the variable name will be the prompt.

#### Examples

input(a)

input("Set a to the value: ",a)

input(a,bee,c)

input("Set a to the value: ",a,bee,"Set c to this value: ",c)

If the value that you enter for input is a string, it should be between quotes. If you want the user to enter a string without having to use the quotes, use the InputStr or textinput command, which is just like input except that it will assume any input is a string and so the user won’t need to use quotes.

##### Creating output windows.

The output or textttOutput command creates message windows.

- output takes strs, a sequence of strings or variables which represent strings.
- output(strs) creates a message window displaying the concatentation of the strings.

#### Examples

s:="message" output("This is a ",s)

Use output to add information to the input window:

input(output("Calculate p(a)"),"polynomial",p,"value",a)