Coding For JOptionPane di java

     

 int a;
        a = Integer.parseInt(JOptionPane.showInputDialog("Masukkan Batas Awal : "));
        int b;
        b = Integer.parseInt(JOptionPane.showInputDialog("Masukkan Batas Akhir : "));
        for (int i = a; i <= b; i++) {
            System.out.println(i+ " "+"Selamat Anda Berhasil");
         
        }
    }
}

0 Response to "Coding For JOptionPane di java"

Posting Komentar

Dilarang komentar spam