The list command is used to list all or part of a program to the screen or line printer.
Syntax
LIST [line number] [-line number]
Where,
Line number : Valid line number within the range of 65,529
LIST (press enter key)
lists all lines in the program
2 REM Learning use of RESTORE statement
5 READ A,B,C
10 RESTORE
15 READ D,E,F
20 DATA 1.8, 5.02, 20, - 47, 0.003
40 PRINT A,B,C,D,E,F
50 END
Example 13
LIST - 20 (press enter key)
Lists lines 1 through 20
Example 14
LIST 10 - 50 (press enter key)
Lists lines 10 through 50.
Example 15
LIST 20 (press enter key)
Lists lines 20 through the end of the program.
Syntax
LIST [line number] [-line number]
Where,
Line number : Valid line number within the range of 65,529
- Use the hyphen(-) to specify a line range.
- If the line range is omitted, the entire program is listed.
- Line number - Lists that line and all higher numbers lines.
- Line number - lists lines from the beginning of the program through the specified line.
- Any listing may be interrupted by pressing CTRL+BREAK.
- Instead of using LIST command, you can use F1 key.
LIST (press enter key)
lists all lines in the program
CS 3.3 Display on Screen for LIST command
LIST2 REM Learning use of RESTORE statement
5 READ A,B,C
10 RESTORE
15 READ D,E,F
20 DATA 1.8, 5.02, 20, - 47, 0.003
40 PRINT A,B,C,D,E,F
50 END
Example 13
LIST - 20 (press enter key)
Lists lines 1 through 20
Example 14
LIST 10 - 50 (press enter key)
Lists lines 10 through 50.
Example 15
LIST 20 (press enter key)
Lists lines 20 through the end of the program.
No comments:
Post a Comment