Toshiba T100 Manual page 108

Hide thumbs Also See for T100:
Table of Contents

Advertisement

RUNNING
A SHORT
BASIC
PROGRAM
Whether
you
have
T-BASIC,
or
T-DISK
BASIC,
you
may
type the following
program
on your screen:
10 A=3
20 B=7
30 C=A+B
40 PRINT
C
The
10, 20, 30 and
40 are
line numbers.
These
keep
the
lines
in
order,
and
tell
the
computer
that
you
are
entering
a program
rather
than
a direct
command.
The
A, B and C identify
variables
to the computer.
Line
10
says
make
variable
A
equal
to
3.
Line
20
says
make
variable
B equal
to 7.
Line
30 says
add
A
and
B and
make
their sum
equal to C.
Line 40 prints the sum
C.
All
of
the
examples
in
this
section
are
shown
in
uppercase.
You
may,
however,
program
in either
upper
or
lowercase.
Did
you
make
any
typing
mistakes?
If so,
you
may
correct
them
while
on
the
same
line
by
overstriking,
inserting
or deleting.
But
even
after
you
have
left
the
line by pressing
J
, you
may
correct
the
program
as
follows:
To Change
a Line:
Retype
the
line number
followed
by the
new
information.
For
example,
type:
10 A=20+40
and
press
<J
to
send
that
information
to
the
computer.
The
old line 10 is replaced
entirely.

Advertisement

Table of Contents
loading

Table of Contents