Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int i = 0; i < n-1; i++)
- for(int j = i+1; j < n; j++)
- if(a[i] > a[j])
- {
- int aux = a[i];
- a[i] = a[j];
- a[j] = aux;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement