MATPRINT function

Post Reply
Posts: 4
Joined: Mon Feb 24, 2020 12:34 am

MATPRINT function

Post by MathFrog » Mon Feb 24, 2020 6:39 pm

My first BestBASIC function. testofmatprint is a program to test...something :lol:

Code: Select all

[print an m x n matrix in an m x n pattern]

Def matprint(a,m,n) 'to simulate the MATPRINT BASIC instruction
Dim a(m,n)
for i = 0 to m
for j =0 to n
 print a(i j);    'the ; keeps the enteries 0 thru n in a row
next j
print            'now we go to the next row
next i
end def

Post Reply