Write a C program to subtract of two matrix.

#include<stdio.h>
#include<conio.h>
#include<math.h>
  main()
{
  int a[n][m],b[n][m],c[n][m];
  int i,j;
  clrscr();
  printf("\n enter the values of n and m");
  scanf("\n %d%d",&n,&m);
  printf("\n enter the element of matrix a");
  for(i=0;i<n;i++)
{
  for(j=0;j<m;j++)
{
  scanf("\n %d",a[i][j]);
}
}
  printf("\n enter the values of matrix b");
{
  for(i=0;i<n;i++)
{
  for(j=0;j<m;j++)
{
  scanf(\n %d",b[i][j]);
}
}
  for(i=0;i<n;i++)
{
  for(j=0;j<m;j++)
{
  c[i][j]=a[i][j]-b[i][j];

  printf("\n %d",c[i][j]);

}
}
  return (0);
}


output:-
  enter the row and column of matrix a={2*2}

  enter the row and column of matrix b={2*2}

  enter the element of first matrix a={0,2,4,5}
  enter the element of first matrix b={0,6,4,5}

  matrix c={0,-4,0,0}