题解 | #翻转金字塔图案#
翻转金字塔图案
http://www.nowcoder.com/practice/c4775776e4464537bfb6a5ba37c596c6
include<stdio.h>
int main()
{
int a = 0;
while (~scanf("%d", &a))
{
for (int b = 0; b < a; b++)
{
for (int c = 0; c < b; c++)
{
printf(" ");
}
for (int d = 0; d < a-b; d++)
{
printf("* ");
}printf("\n");
}
}return 0;
}