Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('Give values for of MatA n MatA is {}x{} matrix.'.format(x,y))
- for i in range(0,4):
- for j in range(0,3):
- MatA[i][j]=input('Type value : ')
- print('This is your matrix A {}'.format(MatA))
- print('Give values for of MatB n MatA is {}x{} matrix.'.format(m,n))
- for i in range(0,5):
- for j in range(0,4):
- MatB[i][j]=input('Type value : ')`enter code here`
- print('This is your matrix A {}'.format(MatB))`enter code here`
- for i in range(0,y):
- for j in range(0,m):
- for k in range(0,y):
- res[i][j] += MatA[i][k] * MatB[k][j]
- print(res)
- print('The matrix isn''t same to do the operation.')
Add Comment
Please, Sign In to add comment