Using HP Instrument BASIC
Modifying Program by using Editor Functions
Step 4. Inserting Characters
Type
EDIT 20
, then press
4
Enter
5
.
10 FOR I=1 TO 10
20 PRINT I^2
30 NEXT I
40 END
Move the cursor by using
4
7
5
key.
10 FOR I=1 TO 10
20 PRINT I^2
30 NEXT I
40 END
Then type
I,
as follows:
10 FOR I=1 TO 10
20 PRINT I, I^2
30 NEXT I
40 END
Above program increments
I
from 1 to 10, and displays I and the second
power of I on one line at each step
. Exit editor, then execute the program.
The following is displayed:
1 1
2 4
3 9
.
.
.
.
.
.
9 81
10 100
1-14