#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int count = 0;
void bub(int* arr,int n)
{
int i, j;
for (i = 0; i < n-1; i++)
for (j = 0; j < n - i-1; j++)
if (arr[j] > arr[j + 1])
{
int t = arr[j];
arr[j] = arr[j + 1];
arr[j + 1] = t;
}
}
int main()
{
int arr[] = { 10,1,5,3,4,6,7,9,8,11 };
int n = sizeof(arr) / sizeof(arr[0]);
bub(arr, n);
int i;
for (i = 0; i < n; i++)
printf("%d ", arr[i]);
return 0;
}