#include <iostream>
using namespace std;
int main()
{
int i, j, temp;
int arr[5] = {10, 2, 0, 43, 12};
cout<<"Arreglo de entrada..."<<endl;
for(i=0; i<5; i++){
cout<<arr[i]<<" ";
}
cout<<endl;
// AQUI SE ORDENA EL ARREGLO
for(i=1; i<5; i++){
for(j=0; j<5-i; j++){
if(arr[j] > arr[j+1]){
temp = arr[j];
arr[j] = arr[j+1];
arr[j+1] = temp;
}
}
}
// SE IMPRIME EL ARREGLO ORDENADO
cout<<"Arreglo ordenado..."<<endl;
for(i=0; i<5; i++){
cout<<arr[i]<<" ";
}
return 0;
}