/* * To input an n X m matrix and print all sub-matrices of it * @author-Karan Narain(karan@iitk.ac.in) * */ #include int main() { int A[10][10],n,m,p,q,i,j,a,b; printf("Enter the number of rows and columns in the n X m matrix\n"); scanf("%d%d",&n,&m); printf("Enter the elements of the %d x %d matrix\n",n,m); for(i=0;i