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