Thank you for your suggestion.
Please correct my code.
#include <iostream>
using std::cout;
using std::cin;
int matrix(void);
int main()
{
matrix();
return 0;
}
int matrix(void)
inta[50] [40],i,j,m,n;
cout << "Enter dimention of matrix\n";
cin >> m >> n;
cout << "Enter elements of matrix\n";
for(i=0;i<m;i++)
for(j=0;j<n;j++)
cin >> a[i] [j];
cout << "\nThe given matrix is: ";
for(i=0;i<m;i++)
{
for(j=0;j<n;j++)
cout << a[i] [j];
return o;
}
