Professional Documents
Culture Documents
2. Algorithm:
Start
Input the no. of rows and columns of both the elements.
Check if the number of columns of first matrix is same as the rows of second matrix which
is condition for matrix multiplication.
Applying for loops, use the formula Cij = ∑(Aik * Bik) where, i,j,k are positive integers
and i,j,k<=n
Next, we display the final matrix.
End
3. CODE for given problem:
#include <iostream>
using namespace std;
void multiply(int[32][32], int[32][32], int, int, int);
int display(int[32][32], int, int);
int main()
{
if (c1 != r2)
return 0;
void multiply(int a[32][32], int b[32][32], int row, int col, int c1)
{
int c[32][32];
4. Screenshot of code:
5.Output:
1.
2.
3.
4.
5.
Evaluation Grid (To be created as per the SOP and Assessment guidelines by the faculty):
Sr. No. Parameters Marks Obtained Maximum Marks
1.
2.
3.