void bubblesort( int N, double v[]) { for( int i=0; iv[i+1] ) { for (int j=i+1; j>0; j--) { if (v[j]