Guest User

Untitled

a guest
Oct 22nd, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. void afficher_tableau_trie(int tab[], int taille)
  2. {
  3. {for (int c=0; c<taille; c++)
  4. {
  5. for (int i=0; i<taille; i++)
  6. {
  7. if (tab[i]>tab[i+1])
  8. {
  9. int a=0;
  10. int b=0;
  11. a=tab[i];
  12. b=tab[i+1];
  13. tab[i]=b;
  14. tab[i+1]=a;
  15. }
  16. }
  17. }
  18. }
  19. for (int d=0; d<taille; d++)
  20. {
  21. cout<<tab[d]<<":";
  22. }
  23. }
Add Comment
Please, Sign In to add comment