*
***
*****
*******
行数*2-1=列数
int i,j;
for(i=1;i<=4;i++)
{for(j=1;j<=5-i;j++)
printf(" ");
for(j=1;j<=i*2-1;j++)
printf("*");
printf("\n");}