#include<iostream.h> #include<conio.h> const int n=20; void boublesort(int k[n]); main() { while(1) { int k[n]; for(int i=0;i<n;i++) { cout<<"Enter Your Numbers: "; cin>>k[i]; } boublesort(k); for(i=0;i<n;i++) cout<<k[i]<<" "; cout<<endl; } getch(); return 0; } void boublesort(int k[n]) { int temp=0; for(int i=1;i<n;i++) for(int j=0;j<n-1;j++) if(k[j]>k[j+1]) { temp=k[j]; k[j]=k[j+1]; k[j+1]=temp; } }