package qsy;
public class starsc
{
public static void main(String[] args)
{int MAX=5;
for(int row=1;row<=MAX;row++)
{
for(int space=4;row<=space;space--)
{System.out.print(" ");}
for(int star=1;star<=2*row-1;star++)
{System.out.print("*");}
for(int space=4;row<=space;space--)
{System.out.print(" ");}
System.out.println();
}
int MAX1=9;
for(int row1=1;row1<=5;row1++)
{
for(int space1=1;space1<=row1-1;space1++)
System.out.print(" ");
for(int star1=1;star1<=MAX1-(2*row1-2);star1++)
System.out.print("*");
for(int space1=1;space1<=row1-1;space1++)
System.out.print(" ");
System.out.println();
}
}
}