Escolar Documentos
Profissional Documentos
Cultura Documentos
if(Vet[Menor]>Vet[j])
Menor=j;
}
if(i!=Menor){
aux=Vet[i];
Vet[i]=Vet[Menor];
Vet[Menor]=aux;
}
}
}
int main(int argc, char** argv) {
int n=9;
int Vetor[9] = {4,8,1,3,7,2,5,6,9};
selecao( Vetor ,n);
printf("\n\n");
for(int i=0;i<n; i++) {
printf("%d -",Vetor[i]);
}
printf("\n\n\n");
return 0;
}
//Copilado
resultado
1 -2 -3 -4 -5 -6 -7 -8 -9 -