From BR Wiki
(Redirected from Summing an array)
SUM also works with multi-dimensional matrices.
Comments and Examples
00010 DIM X(8) 00020 DATA 2,5,3,4,6,3,4,5 00030 READ MAT X 00040 PRINT SUM(X)
Line 40 will print 32, which is the total of the elements of array X.