Tutorials  Articles  Notifications  Login  Signup


Multiply matrices

Problem statement
You are given two matrices. Let's call them a and b. Write a program to print multiplication of both of these matrices.

Input format
on line 1 will consist of number of rows and columns in a and b. Then following lines (no of rows) will consist of digits of matrices.

Output format
Output the matrix obtained by multiplication.

Constraints
Number of columns and rows will be same in both matrices.

Sample Input 1
1 1
1 1
1 1


Sample output 1
1 1



Explanation
No explanation available for this problem





// Write your code here in C++


Editiorial

Read about how to multiply matrices.



go back Go back to Interview



Author: Rajan Shah

Level: Easy

Uploaded on: Nov. 29, 2018

Lab: Interview

Section: Basics


Found something wrong ? Inform us



Other problems from this lab

Print Hello world

How many squares can come in a triangle

Withdraw money from ATM

Adding Reversed Numbers