Qbasic is a program that allows the user to enter the values at runtime (when the program is executed).

1. THE INPUT STATEMENT- The INPUT statement allows the user to assign values to variables during program execution. The syntex for the INPUT statements written as:

                                                 INPUT <prompt>; variable

The prompt informs the user about what he is expected to enter. Example: INPUT "Please enter your age"; a In the above statement if the user enters the value 8, it is assigned to the variable 'a'.

When the input statement is executed, the computer does four things:

1. It stops execution of the program.

2. It prints the prompt message along with a question mark.

3. It waits for the user to enter some data.

4. It assigns the data entered to the variables named in the INPUT statement.