diff --git a/C++/bubblesort.cpp b/C++/bubblesort.cpp new file mode 100644 index 0000000..4c57fe7 --- /dev/null +++ b/C++/bubblesort.cpp @@ -0,0 +1,24 @@ +#include +using namespace std; + +void bubbleSort(int arr[],int len){ + for (int i = 0; i < len-2; i++) { + for (int j = 0; j < len - i - 1; j++) { + if(arr[j]