#include <stdio.h>
#include <stdlib.h>


int main(void) { 
	int pris=0,val=1,val1,occ=0,nbr_val=0;
	double* tab=NULL;
	double* tab_val=NULL;
	tab = (double*) malloc(sizeof(double));
	printf("Réel à entrer: ");
	pris=scanf("%lf",tab[nbr_val]);
	while(pris==1){
		tab = (double*) realloc(tab,nbr_val*sizeof(double));
		printf("Réel à entrer: ");
		pris=scanf("%lf",tab[nbr_val]);
		nbr_val++;
		}
	tab_val = (double*) malloc((nbr_val+1)*sizeof(double));
	printf("%3s  ",tab[0]);
	tab_val[0]=tab[0];
	for(val=1;val<nbr_val;val++){
		occ=0;
		for(val1=0;val1<=occ;val1++){
			if (tab[val]==tab_val[val1])
				occ++;
		}
		if (occ==0)
			printf("%3s  ",tab[val]);
		tab_val[val]=tab[val];
	}
	free(tab);
	free(tab_val);
	printf("\n");
	return EXIT_SUCCESS;
}