Write a c program to read 2 matrices and perform multiplication of 2 matrices

#include<stdio.h>
void main() {
    int a[10][10], b[10][10], c[10][10]={0}, r1,c1,r2,c2,i,j,k;
    printf("Enter rows & cols of A: ");
    scanf("%d%d",&r1,&c1);
    printf("Enter Matrix A:\n");
    for(i=0;i<r1;i++) 
        for(j=0;j<c1;j++) 
            scanf("%d",&a[i][j]);
    printf("Enter rows & cols of A: ");
    scanf("%d%d",&r2,&c2);
    printf("Enter Matrix B:\n");
    for(i=0;i<r2;i++) 
        for(j=0;j<c2;j++) 
            scanf("%d",&b[i][j]);
    if(r1 != c2 || r2 != c1) {
        printf("Invalid Order");
        return;
    }
    for(i=0;i<r1;i++)
        for(j=0;j<r1;j++)
            for(k=0;k<c1;k++)
                c[i][j]+=a[i][k]*b[k][j];
    printf("Multiplication Result:\n");
    for(i=0;i<r1;i++){
        for(j=0;j<c1;j++){
            printf("%d ",c[i][j]); 
        }
        printf("\n");
    }
}