MODUL 8 PEMROGRAMAN VISUAL

 TUGAS PRAKTIKUM PEMROGRAMAN VISUAL
MODUL 8     

no1
    private void bprosesActionPerformed(java.awt.event.ActionEvent evt) {                                       
        // TODO add your handling code here:
        int a,b=10;
        a=Integer.parseInt(ebil.getText());
        a = a+45;
       while (b<=a){
           areahasil.append(b+".kharisma"+"\n");
           b= b+10;
       }

no2
         private void bprosesActionPerformed(java.awt.event.ActionEvent evt) {                                       
        // TODO add your handling code here:
        int a,b=1;
        a=Integer.parseInt(ebil.getText());
       while (a >=b){
           areahasil.append(a+"\n");
           a--;
       }}
no3
  private void bprosesActionPerformed(java.awt.event.ActionEvent evt) {                                       
        // TODO add your handling code here:
      int a,b = 9;
        a=Integer.parseInt(ebil.getText());
         while (b >= 0){
           
            areahasil.append(b+"\n");
       b= b-3;
    }}

no4







no5

Share:

0 comments