#include <iostream>
using namespace std;
int selecSort(int a[]){
int i,j,k,temp;
k=10;
for(i=0;i<k;i++){
for(j=i;j<k;j++){
if(a[j+1]<a[j])
{
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
for(i=0;i<k;i++)
cout<<a[i]<<" ";
cout<<endl;
return (0);
}
int bubbleSort(int a[]){
int i,j,k;
int temp;
k=10;
//k=sizeof(a)/sizeof(a[0]);
for(i=0;i<k-1;i++){
for(j=i;j<k;j++){
if(a[j]>a[j+1]){
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
}
for(i=0;i<k;i++)
cout<<a[i]<<" ";
cout<<endl;
return (0);
}
int main(){
int A[]={9,8,7,6,5,4,3,2,1,0};
int B[]={9,8,7,6,5,4,3,2,1,0};
bubbleSort(A);
bubbleSort(B);
}