题解 | #牛牛的字符矩形#
牛牛的字符矩形
https://www.nowcoder.com/practice/2dbf0151eb71402e968a2a8e59092568
#include <stdio.h> int main() { char x[2][2]; char ch; int k=1; ch=getchar(); int i,j; for(i=0;i<=2;i++) { for(j=0;j<=2;j++) { x[i][j]=ch; printf("%c",x[i][j]); if(k%3==0) printf("\n"); k++; } } return 0; }