#include #include #include #define NBR_VAL 10 #define NBR_ENT 3 #define NBR_ENT1 20 #define NBR_ENT2 18 #define NBR_ENT3 14 int* suite(int valeur){ int compteur=0; int* tab=NULL; tab=(int*) calloc(NBR_VAL,sizeof(int)); while (valeur%2==0){ tab[compteur]=valeur; valeur=valeur/2; compteur++; } tab[compteur]=valeur; return tab; } int main(void){ int i,indice; int tab[NBR_ENT]={NBR_ENT1,NBR_ENT2,NBR_ENT3}; int* tab_val=NULL; for (i=0;i