/*Sum of two 2 * 2 matrix*/
#include<stdio.h>
#include<conio.h>
main()
{
	int i,j,a[2][2],b[2][2],c[2][2];
	clrscr();
	printf("Enter the Matrix A\n");
	i=0;
	while(i<2)
	{
		j=0;
		while(j<2)
		{
			scanf("%d",&a[i][j]);
			j++;
		}
		i++;
	}
	printf("Enter the Matrix B\n");
	i=0;
	while(i<2)
	{
		j=0;
		while(j<2)
		{
			scanf("%d",&b[i][j]);
			j++;
		}
		i++;
	}
	i=0;
	while(i<2)
	{
		j=0;
		while(j<2)
		{
			c[i][j]=a[i][j]+b[i][j];
			j++;
		}
		i++;
	}
	printf("Result Matrix \n");
	i=0;
	while(i<2)
	{
		j=0;
		while(j<2)
		{
			printf("%d  ",c[i][j]);
			j++;
		}
		i++;
		printf("\n");
	}
	getch();
}