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