Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by registered user cococunt ( 13 years ago )
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int x,y,i,j,xx,yy,z;
int a[3][3] = {0};
int b[3][3] = {0};
printf("Enter matrix a:\n\n");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
scanf("%d",&x);
a[i][j] = x;
}
printf("\n");
}
printf("Enter matrix b:\n\n");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
scanf("%d",&y);
b[i][j] = y;
}
printf("\n");
}
printf("Matrix Addition: a + b\n\n");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
z = a[i][j] + b[i][j];
printf("%d ",z);
}
printf("\n");
}
}
Revise this Paste