I am lost on my homework and need help .... here is what I am trying to do and the code I am working on is below it
Write a program for Matrix addition for two 3 by 3 matrices. -Take the input from the user. -Print both the input matrices and the output matrix.
#include<stdio.h>
main()
{
int aArray[3][3];
int bArray[3][3];
int cArray[3][3];
int a,b,c,d,e,f;
for(c = 0; c==2 ; c++)
{
for(d = 0; d==2 ;d++)
{
printf("enter values for Array 1: /n");
scanf("%d", aArray[c][d]);
}
}
for(e = 0; e==2;e++)
{
for(f = 0; f==2; f++)
{
printf("enter values for Array 2");
scanf("%d", bArray[e][f]);
}
}
for(a = 0; a==2;a++)
{
for(b = 0; b==2;b++)
{
cArray[a][b] = aArray[a][b] + bArray[a][b];
}
}
printf("%d\n", cArray);
}