Source Code :
public class Piramid {
public static void main (String[] args) {
int tinggi = 5;
for(int i = 1; i <= tinggi; i++) {
for(int j = 1; j <= tinggi - i; j++) {
System.out.print(' ');
}
for(int j = 1; j <= i; j++) {
System.out.print('*');
}
for(int j = 1; j <= i - 1; j++) {
System.out.print('*');
}
System.out.println();
}
}
}
Outputnya :
Silahkan Copas Gannnn,,,,
Tapi Tolong Jangan Lupa Komentarnya yy gann,,,
0 comments:
:)) :)] ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} ~x( :-t b-( :-L x( =))
Post a Comment