金字塔
金字塔
http://www.nowcoder.com/questionTerminal/806d9a26188949c6916444d2fa8204ff
include<stdio.h>
main()
{int n,i,j,k,xinghao;
while(scanf("%d",&n)!=EOF)
{for(i=1;i<=n;i++)
{for(j=1;j<=n-i;j++)
{printf(" ");}
xinghao=i+i-1;
for(k=1;k<=xinghao;k++)
{printf("*");}
printf("\n");}}}