Group Study
Friday, 19 February 2021
sort the given element using bubble sort
#include
main() { int a[10],i,n,j,t; printf("Size of array:"); scanf("%d",&n); for(i=0;i
=a[j]) { t=a[j-1]; a[j-1]=a[j]; a[j]=t; } } } printf("Ascending order:\n"); for(i=0;i
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment