Write a program that read & display matrices.

#include<stdio.h>
#include<conio.h>

void main()
{
    int i,j,r,c,a[10][10];
    clrscr();
    printf("Enter how many row : ");
    scanf("%d",&r);
    printf("Enter how many column : ");
    scanf("%d",&c);
   
    for(i=0;i<r;i++)
    for(j=0;j<c;j++)
    scanf("%d",&a[i][j]);

    for(i=0;i<r;i++)
    {
       for(j=0;j<c;j++)
       printf("%5d",a[i][j]);
       printf("\n");
      
    }

    getch();
}

///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........