You are on page 1of 1

void main()

int a[10][10],b[10][10],c[10][10],m,n,i,j,k,p,q

clrscr()

printf(" Enter the no of rows and columns of matrix A \n")

scanf("%d%d",&m,&n)

printf("Enter the no of rows and columns of matrix B \n")

scanf("%d%d",&p,&q)

m==p

 True   False 

printf("Matrix multiplication is possible \n")

printf("Matrix multiplication is not possible")

printf("Enter the elements of matrix A\n")

i=0

i<m

 True   False 

j=0 printf("Enter the elements of matrix B\n")

i=0

j<n

 False   True 

i++ scanf("%d",&a[i][j]) i<m

 False   True 

j++ i=0 j=0

i<m j<n

 True   False   True   False 

j=0 printf(" Matrix multiplication is\n") scanf("%d",&b[i][j]) i++

i=0 j++

j<n

 False   True 

i++ c[i][j]=0 i<m

 True   False 

k=0 j=0 getch()

k<n j<n

 True   False   True   False 

c[i][j]=c[i][j]+a[i][k]b[k] j++ printf("%d\t",c[i][j]) printf("\n")

 j 

k++ j++ i++

We use cookies and local storage to improve user experience I Understand ()

You might also like