题解 | 线段图案
线段图案
https://www.nowcoder.com/practice/a95744270f274a14a8a0dafe10421589
#include <stdio.h>
int main() {
int x;
while(scanf("%d",&x)!=EOF)
{
for(int j=1;j<=x;j++)
{
printf("*");
}
printf("\n");
}
return 0;
}
查看15道真题和解析