home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_18_1987_Transactor_Publishing.d64
/
array.demo
(
.txt
)
next >
Wrap
Commodore BASIC
|
2023-02-26
|
506b
|
16 lines
10 sa=51800:dim a(10),b(10)
20 print:for i=0 to 10:a(i)=i:next
30 print:print "set b=a":sys sa+3,a(0),b(0)
40 print:for i = 0 to 10: print b(i);:next
50 v1=2:sys sa+6,v1,b(0):print:print "set b=b+2"
60 for i=0 to 10 :printb(i);:next
70 v2=25:print:print" insert 25 at a(5)":sys sa+51,v2,a(5)
80 for i=0 to 10:printa(i);:next
90 print: print"set b=b*a": sys sa+21,a(0),b(0)
100 for i=0 to 10:print b(i);:next
110 print:print "square b - (b=b^2)"
130 print "starting with element x=4":sys sa+48,b(4)
140 for i=0 to 10:print b(i);:next
150 print: print "using an undefined variable":sys sa,v3,a(0)
160 print: for i=0 to 10:printa(i);:next