Program to Find Sum of Two Matrix January 01, 2018 Programing In C No comments #include<conio.h> #include<stdio.h> void main() { int i,j,A[3][3],B[3][3],C[3][3]; clrscr(); printf("Enter the first MATRIX A:"); for(j=0;i<3;j++) { scanf("%d",sA[i][j]); printf("%d",A[i][j]); } printf("\n"); } printf("Enter the elements of second MATRIX B:"); for(i=0;i<3;i++) { for(j=0;j<3;j++) { scanf("%d",B[i][j]); } printf("\n"); } printf("Adding value of A and B,MATRIX C"); for(i=0;i<3;i++) { for(j=0;j<3;j++) { C[i][j]=A[i][j]+B[i][j]; printf("%d",C[i][j]); } printf("\n"); } getch(); } Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment