6.What shall be the output of the given program CLS FOR i = 2 TO 10 PRINT i NEXT i END
please telll fasstttttt
Answers
Answered by
2
The INPUT command is used to gather input from the user. This section will attempt to teach you how to gather input upon request from the user. For real-time input, see QBasic/Advanced Input.
Here is the syntax of the input command:
INPUT "[text to user]"; [variable] ' Question mark added
or
INPUT "[text to user]", [variable] ' No question mark added
Example:
INPUT "What is your name"; name$
or
INPUT "What is your age", age
When a semicolon (;) is used after the text output to the user, a question mark (?) and space ( ) are added to the output. When a comma (,) is used, no question mark is added.
If a string is specified (e.g., 'name$'), anything the user enters before pressing the 'return' key will be accepted.
If a numeric variable (e.g., 'age') is specified, the user must enter a number. If any non-numeric key is entered, the error message "Redo from start" will be output and the INPUT command rerun.
Here is the syntax of the input command:
INPUT "[text to user]"; [variable] ' Question mark added
or
INPUT "[text to user]", [variable] ' No question mark added
Example:
INPUT "What is your name"; name$
or
INPUT "What is your age", age
When a semicolon (;) is used after the text output to the user, a question mark (?) and space ( ) are added to the output. When a comma (,) is used, no question mark is added.
If a string is specified (e.g., 'name$'), anything the user enters before pressing the 'return' key will be accepted.
If a numeric variable (e.g., 'age') is specified, the user must enter a number. If any non-numeric key is entered, the error message "Redo from start" will be output and the INPUT command rerun.
Similar questions
English,
3 months ago
World Languages,
3 months ago
Science,
6 months ago
History,
6 months ago
Economy,
10 months ago
Social Sciences,
10 months ago