diff --git a/Intermediate/BubbleSort_AJT.cpp b/Intermediate/BubbleSort_AJT.cpp new file mode 100644 index 00000000..6ca550aa --- /dev/null +++ b/Intermediate/BubbleSort_AJT.cpp @@ -0,0 +1,33 @@ +#include +void bubblesort(int a[],int n) +{ + int i,j,k,temp; + for(i=0;ia[j+1]) + { + temp=a[j]; + a[j]=a[j+1]; + a[j+1]=temp; + } + } + printf("The resultant array in this iteration is\t"); + for(k=0;k