题解 | 正斜线形图案
正斜线形图案
https://www.nowcoder.com/practice/61ef68d129534dfbb04b232e1244e447
#include <stdio.h>
int main()
{
int n;
while(scanf("%d",&n)!=EOF)
{
for(int i=1;i<=n;i++)行的数量
{
for(int j=n-i;j>=1;j--)
{
printf(" ");先打出空格
}
printf("*");
printf("\n");
}
}
return 0;
}
传音控股公司福利 315人发布