/* multiplication of a 3*3 matrix*/ #include<stdio.h> main() { int a[3][3],b[3][3],c[3][3]; int i,j,k; printf("enter the elements in A matrix:\n"); for(i=0;i<=2;i++) { for(j=0;j<=2;j++) { scanf("%d",&a[i][j]); } } printf("enter b matrix:\n"); for(i=0;i<=2;i++) { for(j=0;j<=2;j++) { scanf("%d",&b[i][j]); } } for(i=0;i<=2;i++) { printf("\n"); for(j=0;j<=2;j++) { c[i][j]=0; for(k=0;k<=2;k++) { c[i][j] = c[i][j]+a[i][k] * b[k][j]; } } } printf("multiplication matrix is:\n"); for(i=0;i<=2;i++) { for(j=0;j<=2;j++) { printf("%d\t",c[i][j]); } printf("\n"); } }
Matrix-Addition(a,b)1 for i =1 to rows [a]2 for j =1 to columns[a]3 Input a[i,j];4 Input b[i,j];5 C[i, j] = A[i, j] + B[i, j];6 Display C[i,j];
e,j,h,t,c
#include<stdio.h> #include<conio.h> main() { int a[4][4],b[4][4],c[4][4],i,j; printf("enter the elements of matrix a"); for(i=0;i<=3;i++) for(j=0;j<=3;j++) scanf("%d",&a[i][j]); printf("the first matris is"); for(i=0;i<=3;i++) { printf("\n"); for(j=0;j<=3;j++) printf("%d",a[i][j]); } printf("Enter the elements of second matrix"); for(i=0;i<=3;i++) for(j=0;j<=3;j++) scanf("%d",&b[i][j]); printf("the second matrix is"); for(i=0;i<=3;i++) { printf("\n"); for(j=0;j<=3;j++) printf("%d",b[i][j]); } for(i=0;i<=4;i++) for(j=0;j<=4;j++) c[i][j]=a[i][j] + b[i][j]; printf("the addition of matrix is"); for(i=0;i<=3;i++) { for(j=0;j<=3;j++) printf("%d\t",c[i][j]); printf("\n"); } getch(); }
it would have a part in it like this: for (i=0; i<n; ++i) { . for (j=0; j<l; ++j) { . . sum= 0; . . for (k=0; k<m; ++k) { . . . sum += a[i][k] * b[k][j]; . . } . . c[i][j] = sum; . } }
Gordon Sherritt was born in 1922.
J. J. C. Smart was born on 1920-09-16.
C. J. Sansom was born in 1952.
J. C. Furnas was born in 1906.
J. C. Kumarappa was born in 1892.
J. C. Stobart was born in 1878.
J. C. Bloem was born in 1887.
J. C. Holt was born in 1922.
C. J. Miller was born in 1916.
J. C. Trewin was born in 1908.
J. C. Thom was born in 1835.
J. C. Burke was born in 1965.