```
#include <stdio.h>
int main(void){
int i=3,j=3;
int num_final[i][j];
int num1[3][3]={{1,2,3},
{4,5,6},
{7,8,9}};
int num2[3][3]={{10,20,30},
{40,50,60},
{70,80,90}};
for(i=0;i<3;i++){
for(j=0;j<3;j++){
num_final[i][j]=num1[i][j]+num2[i][j];
}
}
///// addition is over , now display the result //
for(i=0;i<3;i++){
for(j=0;j<3;j++){
printf("%d,",num_final[i][j]);
}
printf("\n");
}
```

Outut is here
```
11,22,33,
44,55,66,
77,88,99,
```

Check this line

`num_final[i][j]=num1[i][j]+num2[i][j];`

Change this line like this
`num_final[i][j]=num2[i][j]-num1[i][j];`

Your output is here
```
9,18,27,
36,45,54,
63,72,81,
```

Multiplication of Matrix
This article is written by **plus2net.com** team.

Swapping two numbers sample code
Average of two numbers as entered by user
Highest of three numbers
Finding exam Grade of mark entered using if else condition
Calculation of user entered numbers
Percentage of Mark
Division of Mark
Digits in Number
Sum of Digits
Matrix Multiplication

Post your comments , suggestion , error , requirements etc here