#include <stdio.h>
/*void bubsort(int *p,int n){
int temp;
for(int i=0;i<n;i++){
for(int j=i;j<n-1;j++){
if(*(p+j)<*(p+j+1)){
temp=*(p+j);
*(p+j)=*(p+j+1);
*(p+j+1)=temp;
}
}
}
}*/
void bubsort(int a[]){
int temp;
for(int i=0;i<7;i++){
for(int j=0;j<6;j++){
if(a[j]<a[j+1]){
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
}
void selectsort(int *p,int n){
}
int main () {
int a[]={25,35,15,45,44,21,11};
bubsort(a);
for(int i=0;i<7;i++){
printf("%d ",a[i]);
}
return 0;
}