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