EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 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 #273 background imageLoading...
Page #273 background image
Chapter
10
I
BASIC Ke-ywords
Examples
PRINT "DO"; "NOT"; "LEAVE"; "SPACES"; "BETWEEN";
"THE
S
E
"
;
"W
URDS"
displays DONOTLEAVESPACESBETWEENTHESEWORDS
Sample Program
60
INPUT "ENTER THIS YEAR";
Y
70
INPUT
"ENTER YOUR AGE";A
80
INPUT "ENTER
f?
YEAR IN THE FUTURE";F
90
N=A
+
(F
-
Y)
OLD"
100
PRINT
"IN
THE
YEAR"F-YOU
WILL
BE"N"YEARS
Because
F
and N are positive numbers, PRINT inserts a space
before and after them; therefore, your display should
look
similar
to this (depending on your input):
IN THE YEAR
2004
YOU
WILL
BE
46
YEARS
OLD
If we had separated each expression in Line
100
by a comma:
100
PRINT "IN THE YEAR",F,"YOU WILL BE",N,"YEARS
OLD"
BASIC would move to the next tab position after printing each
data item.
271

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals