标签:io for c print include printf main di
#include <stdio.h>
void main()
{
int i,j,k;
for (i=1;i<6;i++)
{
for(k=0;k<5-i;k++)
{
printf(" ");
}
for (j=0;j<2*i-1;j++)
{
printf("*") ;
}
printf("\n") ;
}
for (i=1;i<6;i++)
{
for(k=0;k<i;k++)
{
printf(" ");
}
for (j=0;j<8-(2*i-1);j++)
{
printf("*") ;
}
printf("\n") ;
}
}
标签:io for c print include printf main di
原文地址:http://www.cnblogs.com/wenhuan/p/3916000.html