#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,val_max,indice;
	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];
	}
	val_max=tab_val[0];
	indice=0;
	for (tour=1;tour<10;tour++){
		if (val_max<tab_val[tour]){
			val_max=tab_val[tour];
			indice=tour;
		}
	}
	printf(" ");
	for (tour=0;tour<indice;tour++)
		printf("      ");
	printf("  ");
	printf("|");
	printf("\n");
	printf(" ");
	for (tour=0;tour<indice;tour++)
		printf("      ");
	printf("  ");
	printf("V");
	printf("\n");
	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");
  return EXIT_SUCCESS;
}