home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
calculat
/
sm30a.zip
/
LIST.SM
< prev
next >
Wrap
Text File
|
1993-10-16
|
491b
|
29 lines
# this is demo of array and list
# the dottime of [1,2] and [11,12] in array
a[1]:=1
a[2]:=2
b[1]:=11
b[2]:=12
p:=0
do(p:=p+a[j]*b[j], j,1,2)
# the dottime in list
dottime([1,2], [11,12])
#output:=prolog
#readfile("demo2.sm")
#p:=[list(x^2, x,1,3,1)]
#p+2
#2+p
#2*p
#last
#readfile(c2)
#list(x,x^2,newline, x,1,3,1)
#last
#do(do(p[j,k]:= f(j)+f2(k), j,1,2,1), k,1,2,1)
#list(list(p[j,k], j,1,2,1), k,1,2,1)
#p[1,2] := 9
#list(list(p[j,k], j,1,2,1), k,1,2,1)