Previous Up Next

25.2.2  Input

Creating input windows.

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

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.

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)

Previous Up Next