% You are given an array x of real numbers, indexed from 0 to n-1 int i = 0; while (i < n) { int j = i+1; while (j < n) { if (x[i] > x[j]) { real y = x[i]; x[i] = x[j]; x[j] = y; } j++; } i++; }