int r, k, c; while(cin >> r >> k >> c){ int rr = r, kk = k, cc = c; for (int i = 0; i < rr;i++) for (int j = 0; j < kk;j++){ cin >> A[i][j]; } for (int i = 0; i < kk;i++) for (int j = 0; j < cc;j++){ cin >> B[i][j]; } for (int i = 0; i < rr;i++) for (int j = 0; j < cc;j++){ if(j!=0) cout << " "; int e = 0; for (int u = 0; u < kk;u++){ e += A[i][u] * B[u][j]; } cout << e; if(j==cc-1){ cout << endl; } } }