题解 | #牛牛的字符菱形#
牛牛的字符菱形
https://www.nowcoder.com/practice/11a5040fa894430f9d25fda1be37ddc8
#include<stdio.h> int main() { char a; scanf ("%c\n",&a); printf ("%3c\n",a); printf ("%2c%c%c\n",a,a,a); printf ("%c%c%c%c%c\n",a,a,a,a,a); printf ("%2c%c%c\n",a,a,a); printf ("%3c\n",a); return 0; }