Sunday, July 17, 2011

SUBTRACTION OF TWO MATRICES USING C PROGRAM


#include

int main(){

int a[3][3],b[3][3],c[3][3],i,j;


printf("Enter the First
matrix->");

for(i=0;i<3;i++)

for(j=0;j<3;j++)


scanf("%d",&a[i][j]);


printf("\nEnter the Second
matrix->");

for(i=0;i<3;i++)

for(j=0;j<3;j++)


scanf("%d",&b[i][j]);


printf("\nThe First matrix is\n");

for(i=0;i<3;i++){


printf("\n");

for(j=0

No comments:

Post a Comment