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