Note: (Restricted functionality due to obvious reasons!)
Minimal Code ( Raw-View ) :
#include<iostream.h>
#include<conio.h>
void main()
{
int m,n,i,j;
int a[20][20],b[20][20];
cout<<"Enter number of rows and columns : "<<endl;
cin>>m>>n;
cout<<"Enter first Matrix : "<<endl;
for(i=1; i<=m; i++)
{ for(j=1; j<=n; j++)
{ cin>>a[i][j];}
}
cout<<endl;
cout<<"Enter second matrix : "<<endl;
for(i=1; i<=m; i++)
{ for(j=1; j<=n; j++)
{ cin>>b[i][j];}
}
int p,q;
cout<<"* First Matrix is : "<<endl;
for(p=1; p<=m; p++)
{
for(q=1; q<=n; q++)
{
cout<<a[p][q]<<" ";
}
cout<<endl;
}
cout<<endl<<"* Second Matrix is : "<<endl;
for(p=1; p<=m; p++)
{
for(q=1; q<=n; q++)
{
cout<<b[p][q]<<" ";
}
cout<<endl;
}
int c[20][20];
cout<<endl<<" ** The sum of the matrices is : "<<endl;
for(i=1; i<=m; i++)
{ for(j=1; j<=n; j++)
{ c[i][j]=a[i][j]+b[i][j];
cout<<c[i][j]<<" ";}
cout<<endl;
}
}