Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(i=1;i<n;i++){
- for(j=0;j<i;j++){
- if(a[i] < a[j]){
- temp = a[i];
- a[i] = a[j];
- a[j] = temp;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement