题解 | #线段图案#
线段图案
https://www.nowcoder.com/practice/a95744270f274a14a8a0dafe10421589
#include <stdio.h> int main() { int a; while (scanf("%d", &a) != EOF) { while (a > 0) { putchar('*'); a--; } putchar('\n'); } return 0; }
线段图案
https://www.nowcoder.com/practice/a95744270f274a14a8a0dafe10421589
#include <stdio.h> int main() { int a; while (scanf("%d", &a) != EOF) { while (a > 0) { putchar('*'); a--; } putchar('\n'); } return 0; }
相关推荐