#include<iostream.h> void main() { int a[]={9,8,7,6,5,4,3,2,1,0}; int n=0; while(n<sizeof(a)/sizeof(int)) { for(int i=0;i<sizeof(a)/sizeof(int)-n;i++) { if(a[i]>a[i+1]) { int temp=a[i+1]; a[i+1]=a[i]; a[i]=temp; } } n++; } for(int i=0;i<sizeof(a)/sizeof(int);i++) { cout<<a[i]<<" "; } }