#include"stdio.h"
void main()
{
int i , n;
/*n是代表行数,i是代表空格*/
for ( n = 1; n <= 5; n ++)
{
for (i = 1; i <= 5 - n; i ++)
printf(" ");
for ( i = 1; i <= 2 * n - 1; i ++)
printf( "*");
printf("\n");
}
for ( n = 1; n <= 4; n ++)
{
for ( i = 3; i >= 4 - n; i --)
printf(" ");
for ( i = 7; i >= 2 * n - 1; i --)
printf("*");
printf("\n");
}
}