Code Program (Coding) Sortir

 

Array Sorting Program Java





package sortir;

import java.util.Scanner;

public class Sortir {
    public static void main(String[] args) 
    {
        Scanner sc = new Scanner(System.in);
        
        int urut, baris, kolom, temp,data, masuk;
        int[] bil;
        System.out.println("           Bubble Sort Project           ");
        System.out.println("-----------------------------------------");
        
        do{
            System.out.print("Masukkan Jumlah Bilangan (Max 100) = ");
            masuk = sc.nextInt();
        }
        while(masuk <= 0 || masuk > 100);
        System.out.println("");
        
        
        bil = new int[masuk];
        for (data = 0; data < bil.length; data++)
        {
            *******
        }
        
        for (baris = 0; baris < bil.length -1; baris++) 
        {
            ***************
        }
        System.out.println("");
        System.out.print("Bilangan Terurut = ");
        for (urut = 0; urut < bil.length; urut++) 
        {
            System.out.print(bil[urut] + " ");
        }
        System.out.println("");
        
        System.out.println("");
        System.out.println("-----------------------------------------");
        System.out.println("           Skuy Replay__Program          ");
        System.out.println("-----------------------------------------");
    }
}
Jika Ingin Mendownload Source Code Yang Lebih lengkap Bisa Langsung KLik Link Di Bawah ini

DOWNLOAD SC--1

DOWNLOAD SC--2


Posting Komentar

Lebih baru Lebih lama