#include using namespace std; void bubbleSort(int a[],int n) { for(int i=n-1;i>=0;i--) { for(int j=0;ja[j+1]) { int temp = a[j+1]; a[j+1]=a[j]; a[j]= temp; } } } cout<<"The sorted list is : "; for(int i=0;i>n; int a[n]; for(int i=0;i>a[i]; } bubbleSort(a,n); return 0; }