Monday, January 23, 2012

INPUT Statements

This statement is used to input data from the user during the program execution. Its Syntax is:
                INPUT [;] [prompt string;] comma-separated list of variables.
                In this Syntax the prompt string  is the message  that is displayed  on the screen to assist the user to input correct data. During program execution the values entered by the user are assigned to the corresponding  variables according to the same sequence in which they are listed. When a semicolon is used to separate the prompt string from the list of variables  a question mark (?) appears at the end of the prompt string. This question mark can be avoided by using a comma instead of a semicolon.

1 comment: