#include<stdio.
h>
int main(){
int A[30][30], B[30][30], C[30][30], i, j, k, r, c;
printf("please enter the no. of rows:");
scanf("%d", &r);
printf("please enter the no. of column:");
scanf("%d", &c);
for(i=0; i<r; i++)
for(j=0; j<c; j++){
A[i][j]= i+j;
printf("%d\t", A[i][j]);
if(j==c-1){
printf("\n\n");
}
}
printf("\n");
for(i=0; i<r; i++)
for(j=0; j<c; j++){
B[i][j]= i+j;
printf("%d\t", B[i][j]);
if(j==c-1){
printf("\n\n");
}
}
printf("\n");
for(i=0; i<r; i++)
for(j=0; j<c; j++){
C[i][j]=0;
for(k=0; k<r; k++){
C[i][j]= C[i][j] + A[i][j]*B[i][j];
}
printf("%d\t", C[i][j]);
if(j==c-1){
printf("\n\n");
}
}
return 0;
}