Guest User

Untitled

a guest
Mar 22nd, 2018
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. print('Give values for of MatA n MatA is {}x{} matrix.'.format(x,y))
  2.  
  3. for i in range(0,4):
  4.  
  5. for j in range(0,3):
  6.  
  7. MatA[i][j]=input('Type value : ')
  8.  
  9. print('This is your matrix A {}'.format(MatA))
  10.  
  11. print('Give values for of MatB n MatA is {}x{} matrix.'.format(m,n))
  12.  
  13. for i in range(0,5):
  14.  
  15. for j in range(0,4):
  16.  
  17. MatB[i][j]=input('Type value : ')`enter code here`
  18.  
  19. print('This is your matrix A {}'.format(MatB))`enter code here`
  20.  
  21. for i in range(0,y):
  22.  
  23. for j in range(0,m):
  24.  
  25. for k in range(0,y):
  26.  
  27.  
  28. res[i][j] += MatA[i][k] * MatB[k][j]
  29.  
  30. print(res)
  31.  
  32. print('The matrix isn''t same to do the operation.')
Add Comment
Please, Sign In to add comment