Hi Aspirant,
The following program can be done in many languages like C,Java,C++ etc.The program for C for additin,subtraction and multiplication I am providing below:
#include <stdio.h>
int main()
{
//fill your code
int m, n;
scanf(“%d %d”,&m,&n);
int i, j;
int mat1[m][n], mat2[m][n], mat3[m][n];
for(i = 0; i < m; i++)
for(j = 0; j < n; j++)
scanf(“%d”,&mat1[i][j]);
}
for(i = 0; i < n; i++)
scanf(“%d”,&mat2[i][j]);
mat3[i][j] = mat1[i][j] + mat2[i][j];
printf(“%d “, mat3[i][j]);
printf(“\n”);
return 0;
Hope it helps!!
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile