EasyManuals Logo
Home>Atari>Desktop>XL

Atari XL User Manual

Atari XL
262 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 #55 background imageLoading...
Page #55 background image
CHAPTER 6
DATA AND PROGRAMS
So
far
we
have
not
examined
all
of
the
ways
in
which
information
can
be
given
to
programs,
nor
those
by
which
programs
can
print
out
information
on
to
the
screen.
There
are
several
ways
of
getting
information
into
programs
which
we
will
examine
in
this
chapter,
and
we
will
also
examine
in
more
detail
the
use
of
PRIN'1'
and
other
commands
to
display
data.
READ
AND
DATA
To
enter
large
amounts
of
data
which
will
be
the
same
each
time
the
program
is
R
UN
we
use
the
data
entry
command
READ.
Look
at
this
program:
10
DIM
STOCKS(10),PRICE{10)
20 FOR ITEM=1
TO
10
30
READ
DTAl,DTA2
40 STOCKS{ITEM)=DTAI
50 PRICE(ITEM)=DTA2
60
NEXT
ITEM
70 PRINT"
'\."
80 FOR
X=l
TO
10
90 PRINT
X,STOCKS(X),PRICE(X)
100
NEXT
X
110
END
120
DATA
5,1.41,1,5.75,10,2.63,
100,9.95,0,2.23,5,5.6,123,
1.49,8,9.12,20,5.55,1,6.59
45

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atari XL and is the answer not in the manual?

Atari XL Specifications

General IconGeneral
BrandAtari
ModelXL
CategoryDesktop
LanguageEnglish

Related product manuals