include <stdio.h>
main()
{int row=1,col;
for (;row<=5;row++)
{ for (col=1;col<=20-row;col++) printf(" ");
for (col=1;col<=2*row-1;col++)printf("*");
printf("\n");
}
getch();
}
这样子还乱吗?如果还乱.我真不知道怎么写了..教教我/...
main()
{int row=1,col;
for (;row<=5;row++)
{ for (col=1;col<=20-row;col++) printf(" ");
for (col=1;col<=2*row-1;col++)printf("*");
printf("\n");
}
getch();
}
这样子还乱吗?如果还乱.我真不知道怎么写了..教教我/...
道路再坚难都不能止步