MODUL 7 PEMROGRAMAN VISUAL

  TUGAS PRAKTIKUM PEMROGRAMAN VISUAL
MODUL7        

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

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

Share:

0 comments