//bubble sort # include using namespace std; int main() { cout<<"Enter the length of array"<>n; int arr[n]; cout<<"Enter the elements of array"<>arr[i]; } for (int i = 0; i < n; i++) { for (int j= 0; j< n-1; j++) { //comparing adjecent elements of array if (arr[j]>arr[j+1]) { // swaping array elements temp = arr[j]; arr[j] = arr[j+1]; arr[j+1] = temp; } } } for (int i = 0; i < n; ++i) { cout<