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

海康威视公司福利 1125人发布