EasyManua.ls Logo

IBM 5150

IBM 5150
252 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
Loading...
Entering
Your
Own
BASIC
Program
A BASIC program consists
of
one
or
more BASIC
statements
that
are preceded by line numbers. The line
numbers are used
by
BASIC
to
control the sequence in
which the statements are run. You use
the
line
r"..
numbers
to
chaflge,
add,ordelete
lines within a program.
'---~
You tell BASIC
that
you
are entering a program
by
beginning the line
you
type
with a line number. After
the line
number
comes a BASIC statement.
Unlike entering a command, the statement is
not run
when
you
press the
Enter
key. A program
is
not
run
until
you
type a
RUN
command.
Let's look
at
an
example-a
very simple program
that
just displays
the
numbers
1,2,
and 3.
1
Make sure BASIC is
ready-Ok
is
displayed.
2
Type this:
new
and press the
Enter
key.
3
Type this:
10
print
and press the Enter key.
4
Type this:
20
print
2
and press Enter.
",-......,
5
Type this:
30
print
3
and press Enter.
BASIC
3-20

Table of Contents

Other manuals for IBM 5150

Related product manuals