Using HP Instrument BASIC
Modifying Program by using Editor Functions
Step 2. Deleting a Line
Type
EDIT 20
to start editor at line 20.
10 FOR I=1 TO 10
11 PRINT I^2
20 PRINT I
30 NEXT I
40 END
Then, select
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
Delete line
or press
4
Shift
5
+
4
Delete
5
to delete line 20. The
result is as follows:
10 FOR I=1 TO 10
11 PRINT I^2
30 NEXT I
40 END
The above program increments
I
from 1 to 10, and displays the second
power of I at each step.
If you exit editor and execute the program, the following is displayed:
1
4
9
.
.
.
81
100
1-12