Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void sort (int t1[], int t2[])
- {
- int tab [200], i;
- for (i=0; i<100; i++)
- {
- tab[i]=t1[i];
- }
- for (i=0; i<100; i++)
- {
- tab[i+100]=t2[i];
- }
- int j, tmp;
- for (i=0; i<200; i++)
- {
- for (j=0; j<199; j++)
- {
- if (tab[j]<tab[j+1])
- {
- tmp=tab[j];
- tab[j]=tab[j+1];
- tab[j+1]=tmp;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment