import java.io.Console;
class pattern11 {
public static void main(String args[]) {
int ln=9; //Number of lines/rows
for(int i=1;i<=ln;i++){
if(i<=ln/2+1){
for(int j=1;j<=i;j++)
System.out.print("*");
} else {
for(int j=ln-i+1;j>0;j--)
System.out.print("*");
}
System.out.println();
}
}
}
Comments
Post a Comment