题解 | #牛牛的字符菱形#
牛牛的字符菱形
https://www.nowcoder.com/practice/11a5040fa894430f9d25fda1be37ddc8
public class Program { public static void Main() { test(char.Parse(System.Console.ReadLine())); } private static void test(char c) { System.Console.WriteLine($" {c} "); System.Console.WriteLine($" {c}{c}{c} "); System.Console.WriteLine($"{c}{c}{c}{c}{c}"); System.Console.WriteLine($" {c}{c}{c} "); System.Console.WriteLine($" {c} "); } }