题解 | #牛牛的字符矩形#
牛牛的字符矩形
https://www.nowcoder.com/practice/2dbf0151eb71402e968a2a8e59092568
#include <stdio.h>
int main(){
char a;
scanf("%c",&a); //输入
int b = 0;
while (b<3) { //判断有几行
int c = 0;
while (c<3) { //判断有几个字符串
printf("%c",a); //输出
c=c+1; //每次加1
}
printf("\n"); //负责换行
b=b+1; //每次加1
}
}
#初学者#
查看27道真题和解析
传音控股公司福利 313人发布