Advertisement
Guest User

Untitled

a guest
Dec 20th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. int temp1=0;
  2. for (int i = 0; i < 10; i++){
  3.  
  4.         for (int j = 1; j < 10; j++){
  5.  
  6.  
  7.        
  8.  
  9.                 if (x[j] < x[j - 1])
  10.                 {
  11.                     temp1 = x[j];
  12.                     x[j] = x[j -1];
  13.                     x[j - 1] = temp1;
  14.                 }
  15.  
  16.             }
  17.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement