Multiply Two Matrices
HardRead a 2 by 3 matrix and then a 3 by 2 matrix, both row by row, and print their 2 by 2 product: one row per line, values separated by a single space. Element [r][c] of the product is the sum of a[r][k] * b[k][c] over every k, so this needs a third loop inside the row and column loops. Guard every read and print "invalid input" if any value fails to read.
Success Criteria
Your code must pass 4 test case(s) to complete this exercise. 4 hint(s) are available if you need help.
Sign in to track your progress
You can work on exercises as a guest, but sign in to track your progress and save your submissions.
How did you find this exercise?
Your rating helps us improve the content.