题解 | #牛牛的字符矩形#
牛牛的字符矩形
https://www.nowcoder.com/practice/2dbf0151eb71402e968a2a8e59092568
创建个函数,
#include<stdio.h>
void al(char ch);
void al(char ch)
{
int count = 0;
int x = 0;
for (x = 0; x < 9; x++)
{
printf("%c", ch);
count++;
if (count == 3)
{
printf("\n");
count = 0;
}
}
}
int main()
{
char ch ;
scanf("%c", ch);
al(ch);
return 0;
}
#如果重上一次大学你会换专业吗#