void sort(int array[], int n ){int tmp;for(int i=0;ifor(int j=i+1;j{if(array[i]"{tmp=array[i];array[i]=array[j];array[j]=tmp;}}}