SHARE
TWEET

Untitled

matheus__serpa Jun 18th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void ordena(int *A, int N){
  2.     int i, j, x;
  3.     for(i = 0; i < N - 1; i++){
  4.         x= i;
  5.         for(j = i + 1; j < N; j++)
  6.             if(A[j] < A[x])
  7.                 x = j;
  8.         if(A[i] != A[x])
  9.             troca(&A[i], &A[x]);
  10.     }
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top