Commodore 64 User Manual page 45

Hide thumbs Also See for 64:
Table of Contents

Advertisement

C^ t1MC ADORE
COMMODORE
COMMODORE
COMMODORE
G IMMClDORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
COMMODORE
BREAK: IN 10
READY
Imagine a number of boxes within the computer that can each hold a
number or a string of text characters. Each of these boxes is to be
labeled with a name that we choose. That name is called a variable
and represents the information in the respective box.
For example, if we say:
10 X% = 15
20 X = 23.5
30 X$ _ "THE SUM OF X%+X
The computer might represent the variables like this:
X% 15
X 23.5
X$ THE SUM OF X%+X =
A variable name represents the box, or memory location, where the
current value of the variable is stored. As you can see, we can assign
either an integer number, floating point number, or a text string to a
variable.
The % symbol following a variable name indicates the variable will
represent an integer number. The following are valid integer variable
names:
35

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Commodore 64

Table of Contents