EasyManuals Logo

HP 4155A Programmer's Guide

HP 4155A
241 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #28 background imageLoading...
Page #28 background image
Using HP Instrument BASIC
Modifying Program by using Editor Functions
Step 1. Inserting Lines
Type
EDIT 20
, then press
4
Enter
5
. Cursor appears at line 20.
10 FOR I=1 TO 10
20 PRINT I
30 NEXT I
40 END
Select
NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
Insert line
or press
4
Insert
5
to insert a line above line 20.
10 FOR I=1 TO 10
11
20 PRINT I
30 NEXT I
40 END
Type as follows:
10 FOR I=1 TO 10
11 PRINT I^2
12
20 PRINT I
30 NEXT I
40 END
I^2
means the second power of I. The above program increments
I
from 1 to
10, and displays second power of I and I for each step
.
Select
NNNNNNNNNNNNNNNNNNNNNNNNNN
End edit
to exit editor, then press
4
Run
5
to execute the program. The
following is displayed:
1
1
4
2
9
3
.
.
.
81
9
100
10
1-11

Table of Contents

Other manuals for HP 4155A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 4155A and is the answer not in the manual?

HP 4155A Specifications

General IconGeneral
BrandHP
Model4155A
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals