This program shows the implementation of Bubble Sort using C:
#include<stdio.h> #include<conio.h> void main() { int a[5],i,j,t,n.k; printf("Enter the no. of elements:"); scanf("%d",&n); printf("Enter the element of the array:",n); for(i=0;i<n;i++) { scanf("%d",&a[i]); } for(j=0;j<n;j++) { for(k=0;k<n-j-1;k++) { if(a[k]>a[k+1]) { t=a[k]; a[k]=a[k+1]; a[k+1]=t; } } } printf("Sorted list is:"); for(i=0;i<n;i++) printf("%d",a[i]); getch(); }
bubble sorting is not eaay to understand can you plse elaborate more about it
Hi new project
http://arab.sexy.girls.twiclub.in/?entry.marina
latin thailand way invaders rearing