#include <stdio.h>
#include <conio.h>
int main(){
    int a[]={15,7,3,8,2,6,10};
    for(int i =0;i<7;i++){
            int degisti=0;
            for(int j=0;j<6-i;j++){
                     printf("sayi: %d <-> %d",a[j],a[j+1]);
                    if(a[j]>a[j+1]){
                        int temp = a[j];
                        a[j]=a[j+1];
                        a[j+1]=temp;
                        degisti=1;
                    }
                   
            }
            if(degisti==0)
                          break;
    }
    for(int i = 0;i<7;i++){
            printf("%d.sayi : %d\n",i,a[i]);
    }
    getch();
}
                                   
                    

