题解 | #牛牛的字符菱形#
牛牛的字符菱形
http://www.nowcoder.com/practice/11a5040fa894430f9d25fda1be37ddc8
using System;
class Program{
static void Main(){
char c=char.Parse(Console.ReadLine());
char[][] cs=new char[][]
{new char[]{' ',' ',c,' ',' '},
new char[]{' ',c,c,c,' '},
new char[]{c,c,c,c,c},
new char[]{' ',c,c,c,' '},
new char[]{' ',' ',c,' ',' '}
};
for(int i=0;i<5;i++){
Console.WriteLine(cs[i]);
}
}
}

影石Insta360公司氛围 452人发布