||<< Index >>||
input ["prompt";]var1 [,var2...]
var2etc., and the program then continues execution at the next statement. This is a simple (but old-fashioned) way to let the user interact with the program.
|"prompt";||If you specify this parameter, the literal string inside the quotes is displayed as a prompt. The input cursor is displayed just to the right of the prompt.|
|var1[,var2...]||These must be string or numeric variables (not record variables). The data that the user enters are assigned to these variables according to the rules explained below.|
inputstatement expects the user to enter data as a sequence of data items separated by commas or tabs as in this example:
23, green, -15.7
23 [tab] green [tab] -15.7 [cr]
var1 [,var2...]list. If the user enters more items than the number of variables in the list, the extra entered items are ignored. If the user enters fewer items than the number of variables in the list, then zeros or null strings are assigned to the extra variables.
inputis an old-fashioned way of getting keyboard input. A more appropriate and "Macintosh-like" way to get input is to use the