BUBBLESORT #include<stdio.h> void bubble(int a[],int n); int i,j,temp,a[25],n; void main() { clrscr(); printf("\n\nEnter how many numbers you want to sort\n\n"); scanf("%d",&n); printf("\nEnter the numbers \n"); for (i=0;i<n;i++) { scanf("%d",&a[i]); } bubble(a,n); printf("\n\nFinal sorted list is "); for (i=0;i<n;i++) printf("%d ",a[i]); getch(); } void bubble(int a[],int n) { int k; for(i=0;i<n-1;i++) { printf("\n\n PASS->%d ",i+1); for(j=i+1;j<=n-1;j++) { if(a[i]>a[j]) { temp=a[i]; a[i]=a[j];
Discover Tips is an online Indian blog Magazine which will provide you exciting knowledge and information.
This is only the data I am discovering all around. A debt of gratitude is in order for your website, I simply subscribe your web journal. This is a decent blog.. pte exam sample papers
ReplyDeleteThanks for this great post,If you want to become an IAS officer, but you don’t know how to prepare the IAS exams and the IAS interview process. Don’t worry, there are plenty numbers of IAS Academy in Chennai. Definitely, you can earn knowledge from the coaching center.
ReplyDeleteWonderful post. I simply stumbled upon your weblog and wanted to mention that I have
ReplyDeletetruly loved surfing around your blog posts.
You can find more information regarding govt Jobs at government jobs till age 40
Very nice
ReplyDelete