题解 | #正斜线形图案#
正斜线形图案
http://www.nowcoder.com/practice/61ef68d129534dfbb04b232e1244e447
#include<stdio.h>
int main()
{
int a;
while(scanf("%d",&a)!=EOF)
{
for(int i = 0;i<a;i++)
{
for(int x = 0;x<a-i-1;x++)
printf(" ");
printf("*\n");
}
}
return 0;
}

