Program to perform addition of two 2 by 2 matrix
An array is a collective name given to a group of similar variables. In this program we will accept two 2-D array (2 by 2 Matrix) as input from the user. This program will then perform addition of two 2 by 2 matrix. It will then display the result after adding two matrix. Here is the program for matrix addition. If you found this article useful, do post a comment. #include #include void main(){ int arr1[10][10], arr2[10][10]; int arr3[][3]={ {0,0,0}, {0,0,0}, {0,0,0} }; int i, j; clrscr(); printf(“Enter 3×3 array 1:\n”); for(i=0;i<3;i++){ for(j=0;j<3;j++){ printf(“Enter element %d x %d:”,i,j); scanf(“%d”,&arr1[i][j]); }...