Program to Find Sum of Two Matrix

#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();

}

Comments

Popular posts from this blog

Gove confirms mandatory housebuilding targets for councils will be abolished in face of Tory rebellion – UK politics live

Kotak Mahindra Bank Recruitment 2022 Released for Graduate Candidates And Apply Online