题解 | #线段图案#
线段图案
http://www.nowcoder.com/practice/a95744270f274a14a8a0dafe10421589
#include <stdio.h>
int main()
{
char ch = '*';
int n = 0;
while (scanf("%d",&n) != EOF)
{
for (int i = 0; i < n; i++ )
{
printf("*");
}
printf("\n");
}
return 0;
}