#include <stdio.h>
int main()
{
// variáveis
int vetor[5] = {0};
int aux, i=0, j=0;
printf("Entre com numeros\n\n");
// input
for(int i=0;i<5;i++){
}
//Ordenação
for(i=0;i<5;i++){
for(j=0;j<(5-1);j++){
if(vetor[j] > vetor[j+1]){
aux = vetor[j];
vetor[j] = vetor[j+1];
vetor[j+1] = aux;
}
}
}
//Output
for(int i=0;i<5;i++){
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCiAgICB7CgovLyB2YXJpw6F2ZWlzCiAgICAgICAgaW50IHZldG9yWzVdID0gezB9OwogICAgICAgIGludCBhdXgsIGk9MCwgaj0wOwogICAgICAgICAgICBwcmludGYoIkVudHJlIGNvbSAgbnVtZXJvc1xuXG4iKTsKCi8vIGlucHV0CiAgICAgICAgICAgIGZvcihpbnQgaT0wO2k8NTtpKyspewogICAgICAgICAgICAgICAgc2NhbmYoIiVpIiwgJiB2ZXRvcltpXSk7CiAgICAgICAgICAgIH0KCi8vT3JkZW5hw6fDo28KICAgICAgICAgICBmb3IoaT0wO2k8NTtpKyspewogICAgICAgICAgICAgICAgZm9yKGo9MDtqPCg1LTEpO2orKyl7CiAgICAgICAgICAgICAgICAgICAgaWYodmV0b3Jbal0gPiB2ZXRvcltqKzFdKXsKICAgICAgICAgICAgICAgICAgICAgICAgYXV4ID0gdmV0b3Jbal07CiAgICAgICAgICAgICAgICAgICAgICAgIHZldG9yW2pdID0gdmV0b3JbaisxXTsKICAgICAgICAgICAgICAgICAgICAgICAgdmV0b3JbaisxXSA9IGF1eDsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CgogICAgICAgICAgICB9CgovL091dHB1dAogICAgICAgICAgICBmb3IoaW50IGk9MDtpPDU7aSsrKXsKICAgICAgICAgICAgICAgIHByaW50ZigiJWlcdCIsdmV0b3JbaV0pOwogICAgICAgICAgICB9CgoKICAgICAgICByZXR1cm4gMDsKICAgIH0K