#include<stdio.h>
int main()
{
int a,b;
for(a=1;a<=4;a++)
{
for(b=1;b<=4-a;b++)
{
printf(" ");
}
for(b=1;b<=2*a-1;b++)
{
printf("*");
}
printf("\n");
}
for(a=3;a>=1;a--)
{
for(b=1;b<=4-a;b++)
{
printf(" ");
}
for(b=1;b<=2*a-1;b++)
{
printf("*");
}
printf("\n");
}
return 0;
}
#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=
本文来自博客园,作者:凡是过去,皆为序曲,转载请注明原文链接:https://www.cnblogs.com/longhai3/p/15887196.html
如有疑问,欢迎提问
#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=#+=