题解 | #牛牛的字符矩形#
牛牛的字符矩形
https://www.nowcoder.com/practice/2dbf0151eb71402e968a2a8e59092568
#include <stdio.h> int main() { char a; int b,c,d; scanf("%c",&a); for(b=2;b<=3;b++){ if(b==3){ printf("\n"); } for(c=1;c<=b;c++){ if(c==3){ printf("\n"); } for(d=1;d<=c;d++){ printf("%c",a); } } } return 0; }