Professional Documents
Culture Documents
Lab Exercise Solution 10
Lab Exercise Solution 10
WEEK – 9
}
printf("\nEnter the B matrix");
for(i=0;i<row;i++)
for(j=0;j<col;j++)
{
scanf("%d",&b[i][j]);
}
for(i=0;i<row;i++)
for(j=0;j<col;j++)
{
c[i][j]=a[i][j]+b[i][j];
}
printf("%d\t",c[i][j]);
}
getch();
}
4. Program to find subtraction of two matrices
Solution: Logic to do this program
c[i][j]=a[i][j] - b[i][j];