You are on page 1of 1

#include <iostream.

h>
using namespace std;
int main(){
int sort[10]={90,5,1,25,15,13,10,14,95,21};
int aux;
for(int i=1;i<10;i++){
for(int j=0;j<10;j++){
while(sort[j]<sort[j-1])
{
aux=sort[j];
sort[j]=sort[j-1];
sort[j-1]=aux;
}
}

for(int i=0;i<10;i++){
cout << sort[i] <<endl;
}
system("pause");
}

You might also like