Coding While JOptionPane di java


    public static void main(String[] args) {
        int a;
        a = Integer.parseInt(JOptionPane.showInputDialog("Masukkan Batas Awal : "));
        int b;
        b = Integer.parseInt(JOptionPane.showInputDialog("Masukkan Batas Akhir : "));
         while ( a <= b){
             System.out.println("Selamat Anda Berhasil");
             a++;
         }
    }
 
}

1 Response to "Coding While JOptionPane di java"

Dilarang komentar spam