public class zuoye {
public static void main(String[] args) {
// TODO 自动生成的方法存根
for (int hs = 1; hs < 11;hs++)
{
for (int kg =9; kg >= hs; kg--)
{
System.out.print(" ");
}
for (int ds = 1 ;ds <= hs; ds++)
{
System.out.print("*");
}
for (int ds = 1; ds < hs; ds++)
{
System.out.print("*");
}
System.out.println();
}
for (int hs = 9; hs > 0;hs--)
{
for (int kg =9; kg >= hs; kg--)
{
System.out.print(" ");
}
for (int ds = 1 ;ds <= hs; ds++)
{
System.out.print("*");
}
for (int ds = 1 ;ds < hs ; ds++)
{
System.out.print("*");
}
System.out.println();
}
}
}