int i, float x; for(int j=1; j<n; j++) { x=v[j]; i=j-1; while(v[i] > x && i>=0) /** in context with this while loop **/ { v[i+1]= v[i]; i= i-1; } v[i+1]= x; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)