Previous Up Next

12.2.2  Input: input Input InputStr textinput output Output

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


Examples.


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, you can use the InputStr 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.
textinput is a synonym for InputStr.


The output command creates message windows:
Output is a synonym for output.


Example.
Input:

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

Output:


You can use output to add information to the input window.


Example.
Input:

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

Output:


Previous Up Next