
#include <stdio.h>
#include <math.h>
int main() {
int n, i, j, row, col;
char c;
if (scanf("%d %c", &n, &c)!=EOF){
col = n; // 列数就是边长
row = round(n / 2.0); // 行数是列数的50%
for (i = 0; i < row; i++) {
for (j = 0; j < col; j++) {
printf("%c", c);
}
printf("\n");
}
}
return 0;
}
系统当前共有 481 篇文章