15 promptrtVal
= promptValue("Saisir une valeur:", &value
);
18 head
= list_append(head
, value
);
23 array
= malloc(counter
*sizeof(int));
24 array
[0] = list_get(head
, 0);
25 for (unsigned i
= 1; i
< counter
; i
++) {
26 array
[i
] = array
[i
-1] + list_get(head
, i
);
28 printf("Tableau des sommes:\n");
29 displayArray(array
, counter
);