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