Professional Documents
Culture Documents
Program to declare a single dimensional array, Read the array elements from keyboard
and display those array elements.
def mul_mat(A,B,m,n,q):
Outp = []
for i in range(m):
row = []
for j in range(q):
x=0
for k in range(n):
x += A[i][k] * B[k][j]
row.append(x)
Outp.append(row)
disp_mat(Outp,m,q)