实现用星号围成一个矩形,矩形中间有文字。请各位帮我写一下代码 我无从下手
string s = "hello world";Console.WriteLine(new string('*', s.Length+2));Console.WriteLine("*" + s + "*" );Console.WriteLine(new string('*', s.Length+2));