LearnPy Hub
← NumPy problems
Medium

Matrix Multiplication

Read two 2×2 matrices (two lines each) and print their matrix product, one row per line.

Input

Four lines.

Output

Two lines.

Sample 1

Input
1 2
3 4
5 6
7 8
Output
19 22
43 50

Sample 2

Input
1 0
0 1
9 8
7 6
Output
9 8
7 6
solution.py
Output appears here
Matrix Multiplication · Python practice problem · LearnPy Hub