diff --git a/c++/mycodeforbubblesort.cpp b/c++/mycodeforbubblesort.cpp new file mode 100644 index 0000000..99b1282 --- /dev/null +++ b/c++/mycodeforbubblesort.cpp @@ -0,0 +1,31 @@ +#include +using namespace std; +int main() +{ + int n; + cout<<"enter size of array : "; + cin>>n; + int arr[n]; + cout<>arr[i]; + } + //bubblesort + for(int i=0;iarr[j+1]) + { + swap(arr[j],arr[j+1]); + } + } + } + cout<