public class PiramidaBilanganTerbalik{
public static void main(String[] args){
for (int a = 5; a >= 1; a--){
for (int b = 1; b <= 5-a; b++)
System.out.print(" ");


for (int c = a; c >= 1; c--)
System.out.print(c);


for (int c = 2; c <= a; c++)
System.out.print(c);


System.out.println();
}
}
}



Gambar : Hasil Class

asykwae toh...

Label : automotive Hotels pimmy ride Phone Cell Property wallpapers Anti Vir car body design

1 komentar:

  1. Rachmad HW

    @adiarto, install netbeans versi berapa? kalo 5 keatas di class main.java harus ditambahkan perintah untuk memanggil form yang kita buat! contohnya : new frmBaru().setVisible(true);

    28 Juni 2009 pukul 19.44

Posting Komentar

Mari berbagi ilmu disini meski sekedar coretan saja....

http://www.google.com/friendconnect/api/people/ http://www.google.com/friendconnect/api/activities/ http://www.google.com/friendconnect/api/appdata/