Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ordena(int *A, int N){
- int i, j, x;
- for(i = 0; i < N - 1; i++){
- x= i;
- for(j = i + 1; j < N; j++)
- if(A[j] < A[x])
- x = j;
- if(A[i] != A[x])
- troca(&A[i], &A[x]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement