#include<stdio.h>
#include<conio.h>
int a,b;
int n1[3][3], n2[3][3],sum[3][3];

int array( int [3][3],int n2[3][3]);
int main()
{

printf("enter the elements of first matrix\n");
for(a=0;a<3;a++)
{
	for(b=0;b<3;b++)
	{
		scanf("%d",&n1[a][b]);
	}
}
printf("enter the elements of second order matrix\n");
for(a=0;a<3;a++)
{
	for(b=0;b<3;b++)
	{
		scanf("%d",&n2[a][b]);
	}
}
array (n1,n2);
printf("\nthe sum of the corresponding matrix element is \n",sum[a][b]);
for(a=0;a<3;a++)
{for(b=0;b<3;b++)
printf("%d ",sum[a][b]);
printf("\n");
}

getch();
}
int array(int n1[3][3],int n2[3][3])
{
for(a=0;a<3;a++)
{
	for(b=0;b<3;b++)
	{
		sum[a][b]=n1[a][b]+n2[a][b];
}
	printf("\n");
	}}