#include <stdio.h>
#include <stdlib.h>
#include <time.h>
 
int main(void) {
	int val1,val2,val3,val4,val5,val6,val7,val8,val9,val10,tour,signe;
	int tab_val[10]={val1,val2,val3,val4,val5,val6,val7,val8,val9,val10};
	srand(time(NULL));
	for (tour=0;tour<10;tour++){
		tab_val[tour]=rand()%51;
		int tab_temp[2]={tab_val[tour],tab_val[tour]*(-1)};
		signe=rand()%2;
		tab_val[tour]=tab_temp[signe];
	}
	int tab_val_inverse[10]={};
	for (tour=0;tour<10;tour++)
		tab_val_inverse[tour]=tab_val[(9-tour)];
	printf("+");
	for (tour=0;tour<10;tour++)
		printf("-----+");
	printf("\n");
	printf("|");
	for (tour=0;tour<10;tour++)
		printf("%4d |",tab_val[tour]);
	printf("\n");
	printf("+");
	for (tour=0;tour<10;tour++)
		printf("-----+");
	printf("\n");
	printf("\n");
	printf("\n");
	printf("+");
	for (tour=0;tour<10;tour++)
		printf("-----+");
	printf("\n");
	printf("|");
	for (tour=0;tour<10;tour++)
		printf("%4d |",tab_val_inverse[tour]);
	printf("\n");
	printf("+");
	for (tour=0;tour<10;tour++)
		printf("-----+");
	printf("\n");
  return EXIT_SUCCESS;
}