Professional Documents
Culture Documents
h>
#include<fstream.h>
#include<stdlib.h>
#include<time.h>
void main()
{ srand(time(NULL));
int a[100][100],b[100],N,M,P,i,j,k,x,y,m,n,men,l,may;
cout<<"INGRESE LAS FILAS Y COLUMNAS DE LA MATRIZ\n";
cin>>N;
cin>>M;
cout<<"CARGA DE DATOS DE LA MATRIZ\n";
for(i=0;i<N;i++)
{cout<<"\n";
for(j=0;j<M;j++)
{ a[i][j]=1+rand()%30;
cout<<a[i][j]<<"\t";
}
}
}
cout<<"\n";
getch();
}