EasyManuals Logo

IBM 5150 User Manual

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
Page #180 background imageLoading...
Page #180 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM 5150 and is the answer not in the manual?

IBM 5150 Specifications

General IconGeneral
ProcessorIntel 8088
Clock Speed4.77 MHz
RAM16 KB - 256 KB
ManufacturerIBM
Model5150
Release Year1981
Storage5.25-inch floppy drives
GraphicsMDA or CGA
Operating SystemIBM PC DOS
PortsCassette, keyboard
Expansion Slots5

Related product manuals