Quote:
can anyone find whats wrong with my code?
You input 2 arrays in this code, why don't you do it same way ?
for ( i = 0; i < 2; ++i)
for ( j = 0; j < 2; ++j)
scanf("%d", &num[i][j]);
...
for (k=0;k<2;++k)
{
for (l=0;l<2;++l)
{
scanf("%d",sum[k][l]);
}
}