Commodore 64 User Manual page 35

Hide thumbs Also See for 64:
Table of Contents

Advertisement

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 'T' (Up arrow) signifies exponentiation.
PRINT 12 ' 5
248832
This is the same as typing:
PRINT 12 * 12 * 12 * 12 * 12
248832
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

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Commodore 64

Table of Contents