public class siku{
public static void main(String[] args) {
int baris = 6;
for(int i=0; i<baris; i++){
for(int j=0; j<=i; j++)
System.out.print("* ");
System.out.println();
}
}
}
Hasil Output:
public class siku{
public static void main(String[] args) {
int baris = 6;
for(int i=0; i<baris; i++){
for(int j=0; j<=i; j++)
System.out.print("* ");
System.out.println();
}
}
}
Judul | : | Program Segitiga Siku-Siku |
Url | : | https://gudangilmu1991.blogspot.com/2013/10/program-segitiga-siku-siku.html |
Pada | : | Kamis, 24 Oktober 2013 |
Oleh | : | Gudang Ilmu |
Respond | : | 0 |
Share | : |
0 komentar:
Posting Komentar