15 lines
235 B
C
15 lines
235 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <time.h>
|
|
#include <math.h>
|
|
|
|
int main(void) {
|
|
int tableau[10];
|
|
int i;
|
|
srand(time(NULL));
|
|
for(i=0; i<10;i++){
|
|
tableau[i]= (rand()%101)-50;
|
|
printf("%d\n", tableau[i]);
|
|
}
|
|
}
|