计算两个矩阵的乘积。下,请填空。 说明:1.当矩阵A的列数等于矩阵B的行数时,A与B可以相乘。 2.矩阵C的行数等于矩阵A的行数,C的列数等于B的列数。 3.乘积C的第m行第n列的元素等于矩阵A的第m行的元素与矩阵B的第n列对应元素乘积之和。 #include "stdio.h" #define M 2 #define P 3 #define N 4 void fun(int a[M][P], int b[P][N],int c[M][N]) { int i,j,k,s; for(i=0;i { for(j=0;j { s= [填空(1)] ; for (k=0;k s+= [填空(2)] ; c[i][j]=s; } } } int main() { int a[M][P], b[P][N],c[M][N]; int i,j,k; printf("Input array a[2][3];\n"); //输入数组A的值 for(i=0;i { for(k=0;k scanf("%d",&a[i][k]); } printf("Input array b[3][4];\n"); //输入数组B的值 for(i=0;i { for(k=0;k scanf("%d",&b[i][k]); } fun(a,b,c); printf("Output array c[2][4]:\n"); //输出数组C的值 for(i=0;i { for(j=0;j { printf("%5d",c[i][j]); } printf("\n"); } return 0; } A. 0 B. a[i][k]*b[k][j]