*
*.*.
*..*..*..
*...*...*...*...
*....*....*....*....*....
*.....*.....*.....*.....*.....*.....
*......*......*......*......*......*......*......
*.......*.......*.......*.......*.......*.......*.......*.......
#include <stdio.h>
#define N 8
int main()
{
int i;
int j;
int k;
for(i=0;i<N;i++)
{
for(k=0;k<=i;k++)
{
printf("*");
for(j=N-i;j<N;j++)
{
printf(".");
}
}
printf("\n");
}
return 0;
}
posted on 2006-08-29 10:51
创建更好的解决方案 阅读(439)
评论(0) 编辑 收藏 引用