document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. //Selection Sort
  2. void selection (int a[],int n) {
  3. int i,j,pos;
  4. for (i=1;i<n;i++) {
  5.    pos=i;
  6.    for (j=i+1;j<=n;j++)
  7.    if(a[j]<a[pos])
  8.    pos=j;
  9.    tukar(a,pos,i);
  10.    }
  11. }
');