controle
This commit is contained in:
parent
c485bfd063
commit
6906011d53
Binary file not shown.
@ -3,15 +3,22 @@
|
||||
|
||||
int main(int argc, char * argv[]){
|
||||
int matrice[10][20];
|
||||
int i,j;
|
||||
int i,j,x;
|
||||
for (x=0;x<=10;x++){
|
||||
srand(time(NULL));;
|
||||
int k,l;
|
||||
for (i=0;i<10;i++){
|
||||
for(j=0;j<20;j++){
|
||||
k = rand()%10;
|
||||
l = rand()%20;
|
||||
matrice[i][j]=1;
|
||||
matrice[k][j]=0;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (i=0;i<10;i++){
|
||||
for(j=0;j<20;j++){
|
||||
printf("%d",matrice[1][1]);
|
||||
printf("%d",matrice[i][j]);
|
||||
}printf("\n");
|
||||
}
|
||||
printf("\n");
|
||||
|
Loading…
Reference in New Issue
Block a user