#include<bits/stdc++.h>
using namespace std;
void bubble_sort(int arr[], int length){
for(int i=length;i>1;i--)
{
for(int j=1;j<i;j++)
{
if(arr[j-1]>arr[j]){
int temp = arr[j-1];
arr[j-1] = arr[j];
arr[j] = temp;
}
}
}
}
int main()
{
int arr[] = {5,2,7,6,1,4,3};
bubble_sort(arr,7);
for(int i=0;i<7;i++)
{
cout<<arr[i]<<" ";
}
}