diff --git a/modified bubble sort.c b/modified bubble sort.c new file mode 100644 index 0000000..1f2fa1b --- /dev/null +++ b/modified bubble sort.c @@ -0,0 +1,33 @@ +#include +int main() +{ + int a[100],n,i; + printf("\n Enter the size of array : "); + scanf("%d",&n); + printf("\n Enter array : \n"); + for(i=0;ia[j]) + { + temp=a[i]; + a[i]=a[j]; + a[j]=temp; + } + } + } + printf("\n Your sorted array is : "); + for(i=0;i