void input(int A[10][10], int &R, int &C) { int i, j; cout<<"enter the no. of rows:"; cin>>R; cout<<"Enter the no. of columns:"; cin>>C; for(i=0; i<R; i++) { for(j=0; j<C; j++) { cin>>A[i][j]; } } }