Write a function to read a matrix of size m x n from the keyboard.
//Write a function to read a matrix of size m x n from the
//keyboard.
#define row 50
#define col 50
#include
#include
void main()
{
void data_entry_matrix(int,int);
clrscr();
cout<<"\n\n\tEnter Number of rows you want to enter:-";
int rows;
cin>>rows;
cout<<"\n\n\tEnter Number of Column You want to enter:-";
int cols;
cin>>cols;
data_entry_matrix(rows,cols);
getch();
}
void data_entry_matrix(int r, int c)
{
clrscr();
int matrix[row][col];
for(int i=0;i < r;i++)
{
for(int j=0;j
cin>>matrix[i][j];
}
}
}