using namespace std;
int main()
{
int N,M;
cout<<"Satir sayisi : ";
cin>>N;
cout<<"Sutun sayisi : ";
cin>>M;
if(N<=0 || M<=0)
{
cout<<"Gecersiz boyut girildi...";
}
int a[N][M],b[N][M],c[N][M];
for(int i=0; i<N; i++)
for(int j=0; j<M; j++)
{
cout<<"a["<<i<<"]"<<"["<<j<<"] =";
cin>>a[i][j];
cout<<"b["<<i<<"]"<<"["<<j<<"] =";
cin>>b[i][j];
c[i][j]=a[i][j]+b[i][j];
}
for(int i=0; i<N; i++)
{
for(int j=0; j<M; j++)
{
cout<<a[i][j]<<"\t";
}
if(i==0)
cout<<"\t+\t";
else
cout<<"\t \t";
for(int j=0; j<M; j++)
{
cout<<b[i][j]<<"\t";
}
if(i==0)
cout<<"\t=\t";
else
cout<<"\t \t";
for(int j=0; j<M; j++)
{
cout<<c[i][j]<<"\t";
}
cout<<endl;
}
}