SHARE
TWEET

Untitled

a guest Mar 8th, 2015 267 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (int i = 0; i < array.Length-1; i++)
  2.           {
  3.             for (int j = i+1; j < array.Length; j++)
  4.             {
  5.                 if (array[j]<array[i])
  6.                 {
  7.                     int variableNum = array[j];
  8.                     array[j] = array[i];
  9.                     array[i] = variableNum;
  10.                 }
  11.              }
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