This example shows implementing bubble sort algorithm.
Enter size of array :6 Enter the elements of the array : 6 2 1 8 3 9 Elements after sorting: 1 2 3 6 8 9