Jumat, 29 Juni 2012

/* Pensortingan (menggunakan teknik Bubble Sort) */

for(int x = 0; x < n-1; x++){

     for(int y = x+1; y < n; y++){

        int temp;

        if(input[x] > input[y]){

        temp = input[x];

        input[x] = input[y];

        input[y] = temp;

       }

    }
}

Hoshiora . 2017 Copyright. All rights reserved. Designed by Blogger Template | Free Blogger Templates