From ae0658114162dcdd3fe3574ad1c804cde434e72a Mon Sep 17 00:00:00 2001 From: Prakhar Dubey Date: Tue, 27 Oct 2020 12:05:50 +0530 Subject: [PATCH] Create bubble_sort.cpp bubble sort program in C++ --- Algorithms/Arrays/Bubble_sort/bubble_sort.cpp | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Algorithms/Arrays/Bubble_sort/bubble_sort.cpp diff --git a/Algorithms/Arrays/Bubble_sort/bubble_sort.cpp b/Algorithms/Arrays/Bubble_sort/bubble_sort.cpp new file mode 100644 index 00000000..747359ac --- /dev/null +++ b/Algorithms/Arrays/Bubble_sort/bubble_sort.cpp @@ -0,0 +1,32 @@ +#include +using namespace std; +int main () +{ + int i, j,temp,pass=0; + int a[10] = {10,2,0,14,43,25,18,1,5,45}; + cout <<"Input list ...\n"; + for(i = 0; i<10; i++) { + cout <