public class demo5 {
public static void main(String[] args) {
for (int i = 0;i < 5 ;i++ ) {
for (int j = 0;j < (5-i) ;j++ ) {
System.out.print(" ");
}
for (int z = 0;z <= i ;z++ ) {
System.out.print("* ");
}
System.out.println();
}
}
}
*
* *
* * *
* * * *
* * * * * |
|