#include<stdio.h>

// Bubble Sort #1 - Descending Order
void bubbleSortDesc(int numbers[], int Max)
{
  int i, j, temp;

  for (i = 0; i <= (Max - 1); i++)
  {
    for (j = (Max - 1); j >= i+1; j--)
    {
      if (numbers[j] > numbers[j-1])  
      {
        // Exchange the adjacent elements
        temp = numbers[j-1];
        numbers[j-1] = numbers[j];
        numbers[j] = temp;
      }
    }
  }

  // To display the sorted list onto the screen
  printf("\n\nSorted list is \n\n");
  for (i=0; i<Max; i++)
	     printf("%d\n",numbers[i]);
}

// Bubble Sort Implementation - Sort by Descending Order
int main()
{
   int a[]={200,5,254,23,76,34,215,65,5634,132,6757,2423,664,2345};
   int array_size=14;
   bubbleSortDesc(a,array_size);           
   return 0;
} // End of main