题解 | #正方形图案#
正方形图案
https://www.nowcoder.com/practice/1304bb23c2e344989d5c7a578d263e4c
#include <stdio.h>
int main() {
int n;
while(scanf("%d", &n)!=EOF){
int count = 1;
while (count <= n) {
for (int i = 1; i <= n; i++) {
printf("* ");
}
printf("\n");
count++;
}
}
return 0;
}