Menu
Bubble sort Program by amclogon.in
Bubble sort Program by amclogon.in
#include
#include
void main()
{
int a[10],n,i,j,temp;
clrscr();
printf("enter the number of ele");
scanf("%d",&n);
printf("enter the number of ele");
for (i=0;ia[j+1])
{
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
}
printf("sorted array is \n");
for (i=0;i
Related Templates
If you enjoyed this article just click here, or subscribe to receive more great content just like it.