The input or Input command prompts the user for the value of a variable.
vars, a sequence of variable names, each one optionally preceded by a string.
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.
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.
The output or textttOutput command creates message windows.
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) |