diff --git a/APL1.1/CM1/Feston b/APL1.1/CM1/Feston index a9e3b09..8616659 100755 Binary files a/APL1.1/CM1/Feston and b/APL1.1/CM1/Feston differ diff --git a/APL1.1/CM1/Feston.c b/APL1.1/CM1/Feston.c index 4941b82..17f3447 100644 --- a/APL1.1/CM1/Feston.c +++ b/APL1.1/CM1/Feston.c @@ -1,20 +1,18 @@ #include #include +#include int main(int argc, char * argv[]){ int matrice[10][20]; -int i,j,x; -for (x=0;x<=10;x++){ -srand(time(NULL));; -int k,l; +int i,j,x,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 (x=0;x<=20;x++){ +srand(time(NULL)); +matrice[rand()%10][rand()%20]=0; } for (i=0;i<10;i++){ for(j=0;j<20;j++){