/******************************************************************************
Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <stdio.h>
void main(void) {
// your code goes here
int i,j,k,a[2][2],b[2][2],c[2][2];
printf("\nenter first matrix of 2/2 ");
for(i=0;i<2;i++)
for(j=0;j<2;j++)
scanf("%d",&a[i][j]);
printf("\nenter second matrix of 2/2 ");
for(i=0;i<2;i++)
for(j=0;j<2;j++)
scanf("%d",&b[i][j]);
printf("\nResulting Matrix ");
for(i=0;i<2;i++){
printf("\n");
for(j=0;j<2;j++){
c[i][j]=0;
for(k=0;k<2;k++)
c[i][j]=c[i][j]+a[i][k]*b[k][j];
printf("%4d",c[i][j]);
}}
//return 0;
}