Advertisement
Guest User

Untitled

a guest
May 24th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.74 KB | None | 0 0
  1. void affichage_probleme(Tentrees ent,Tsorties sort,Tcolis colis) // affiche le résultat suivant les étapes
  2. {
  3.     if(ent.a == 1)
  4.     {
  5.         printf("\n\t Le colis est petit");
  6.     }
  7.     if(ent.b == 1)
  8.     {
  9.         printf("\n\t Le colis est grand");
  10.     }
  11.     if(ent.c == 1)
  12.     {
  13.         printf("\n\t Il y a %d colis",sort.compteur);
  14.     }
  15.     if(sort.M1 == 1)
  16.     {
  17.         printf("\n\t Le moteur M1 est en marche");
  18.     }
  19.     if(sort.M2 == 1)
  20.     {
  21.         printf("\n\t Le moteur M2 est en marche");
  22.     }
  23.     if(sort.V2 == 1)
  24.     {
  25.         printf("\n\t Le moteur V2 est en marche");
  26.     }
  27.     if(sort.V1 == 1)
  28.     {
  29.         printf("\n\t Le moteur V1 est en marche");
  30.     }
  31.     if(colis.code == 0)
  32.     {
  33.         printf("\n\t Le numero du colis est impair");
  34.     }
  35.     if(colis.code == 1)
  36.     {
  37.         printf("\n\t Le numero du colis est pair");
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement