MODUL 9 PEMROGRAMAN VISUAL
TUGAS PRAKTIKUM PEMROGRAMAN VISUAL
MODUL 9
no1
private void bprosesActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
int a,b = 10;
a=Integer.parseInt(ebil.getText());
do{
areahasil.append(b+".Kharisma"+"\n");
b= b+10;
}
while (b <= a);
}
no4
no2
private void bprosesActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
int a,b = 1;
a=Integer.parseInt(ebil.getText());
do{
areahasil.append(a+"\n");
a--;
}
while (a >= b);
}
no3
private void bprosesActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
int a,b = 9;
a=Integer.parseInt(ebil.getText());
a= a+45;
do{
areahasil.append(b+"\n");
b= b-3;
}
while (b >= 0);
}
0 comments