SHARE
TWEET

Untitled

a guest Sep 20th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int temp;
  2.             for (int i = 0; i < nums.Length-1; i++)
  3.             {
  4.                 for (int j = i + 1; j < nums.Length; j++)
  5.                 {
  6.                     if (nums[i] > nums[j])
  7.                     {
  8.                         temp = nums[i];
  9.                         nums[i] = nums[j];
  10.                         nums[j] = temp;
  11.                     }
  12.                 }
  13.             }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top