Matrices Multiplications input problems

I wanted to multiply two 3 by 3 matrices A and B, resulting in matrix C.
C= A*B
Cij= Sum(Aik*Bkj)(0<=k<3)
Let prompt user input matrices A and B for 3 by 3.

My code went like this... but it wont show in a matrix... its just a sentence.
I haven't done the multiplications yet cuz i cant get over this part.
I am not good in using arrays... i might have forgot something or did stupid mistakes... sorry about that beforehand.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include<stdio.h>

int main()
{
    int A[3][3], B[3][3], C[3][3];
    int i, j, k;
    
      
       
    for(i=1; i<=3; i++)
    {
        for(j=1; j<=3; j++)
        {
            printf("Matrix A is: ");
            scanf("%d", &A[i][j]);
        }
    }
    
    for(i=1; i<=3; i++)
    {
        for(j=1; j<=3; j++)
        {
            printf("Matrix B is: ");
            scanf("%d", &B[i][j]);
        }
    }
    
    system("PAUSE");
    return 0;
    
    
}
Topic archived. No new replies allowed.