EasyManua.ls Logo

Commodore 64 - Editing Tips; Variables

Commodore 64
176 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
EXPONENTIATION
In a like fashion, you can easily raise a number to a power (this is the
same as multiplying a number by itself a specified number of times).
The 'j' (Up arrow) signifies exponentiation.
PRINT 12 t 5
2488:32
This is the same as typing:
PRINT 12 .. 12 .. 12 .. 12 .. 12
248:3:32
TIP:
BASIC has a number of shortcut ways of doing things. One such way is abbreviat-
ing BASIC commands (or keywords). A ? can be used in place of PRINT,for exam-
ple. As we go on you'll be presented with many commands; Appendix D shows the
abbreviations for each and what will be displayed on the screen when you type the
abbreviated form.
The last example brings up another important point: many calcula-
tions may be performed on the same line, and they can be of mixed
types.
You could calculate this problem:
25

Table of Contents

Other manuals for Commodore 64

Related product manuals