[求助]怎么编这个程序??
* * ** **
*** ***
*******
*******
用TC编一个程序,输出以上图案,怎么编啊??
#include<stdio.h>
void main (void)
{int i,j,k,t,m,n;
for (i=1;i<=3;i++){
for (j=1;j<=i;j++)
printf("%2c",'*');
for (k=1;k<=7-2*i;k++)
printf("%2c",' ');
for (t=1;t<=i;t++)
printf("%2c",'*');
printf("\n");
}
for (m=1;m<=2;m++){
for (n=1;n<=7;n++)
printf ("%2c",'*');
printf("\n");
}
return 0;
}