--- /dev/null
+#include <stdlib.h>
+#include <stdio.h>
+#include <stdbool.h>
+
+#include "ui.h"
+
+int main() {
+ link_t* head = NULL;
+ unsigned counter = 0;
+ int value = 0;
+ int promptrtVal = 0;
+ int* array = NULL;
+
+ while (true) {
+ promptrtVal = promptValue("Saisir une valeur:", &value);
+ if (promptrtVal != 0)
+ break;
+ head = list_append(head, value);
+ counter++;
+ }
+ printf("Liste:\n");
+ displayList(head);
+ array = malloc(counter*sizeof(int));
+ array[0] = list_get(head, 0);
+ for (unsigned i = 1; i < counter; i++) {
+ array[i] = array[i-1] + list_get(head, i);
+ }
+ printf("Tableau des sommes:\n");
+ displayArray(array, counter);
+ list_clear(head);
+ free(array);
+
+ return 0;
+}