Advertisement
aymen_laroussi

Exercice 2

Mar 24th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. void SommeListe(Liste *list)
  2. {
  3.   int k;  
  4.   k=0;
  5.     Element *actuel = list->premier;
  6.     while (actuel != NULL)
  7.     {
  8.         k= k+ actuel->nombre;
  9.        
  10.         actuel = actuel->suivant;
  11.     }
  12.  printf("%d k=", k);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement