diff --git a/Sorting/bubble sort/cpp/buubleDesc.cpp b/Sorting/bubble sort/cpp/buubleDesc.cpp new file mode 100644 index 00000000..29b6b916 --- /dev/null +++ b/Sorting/bubble sort/cpp/buubleDesc.cpp @@ -0,0 +1,41 @@ +#include +using namespace std; + +void bubbleSort(int A[],int n) +{ + int i,j; + int temp; + for(i=0;i>n; + int a[n]; + cout<<"Enter the element\n"; + for(int i=0;i>a[i]; + } + bubbleSort(a,n); + cout<<"The Sorted array is :-"; + for(int i=0;i