programming-examples/c/Numerical/C Program to Check Multiplicability of Two Matrices.c
2019-11-15 12:59:38 +01:00

18 lines
441 B
C

#include<stdio.h>
int main()
{
int m, n;
int p, q;
printf("Enter the dimensions of first matrix: ");
scanf("%d%d", &m, &n);
printf("\nEnter the dimensions of second matrix: ");
scanf("%d%d", &p, &q);
if( n != p )
{
printf("\nTwo matrices CANNOT be multiplied !!!");
}
else
printf("\nTwo matrices meet the criteria for Multiplication !!!");
return 0;
}