Source Code Do While JOptionPane di java - Always Share

Rabu, 04 November 2015

Source Code Do While JOptionPane di java


Di bawah ini contoh coding Do While JOptionPane :

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

2 komentar: