diff --git a/Bubble Sort.cpp b/Bubble Sort.cpp new file mode 100644 index 0000000..01f0e38 --- /dev/null +++ b/Bubble Sort.cpp @@ -0,0 +1,29 @@ +#include +using namespace std; +int main(){ + int a[20]; + int n,x,v; + cin>>n; + for(int i=0;i>x; + a[i]=x; +} +for(int u=n-1;u>0;u--){ + for(int j=0;j