实现用星号围成一个矩形,矩形中间有文字。请各位帮我写一下代码 我无从下手
1条回答 默认 最新
- threenewbee 2016-05-07 23:59关注
string s = "hello world";
Console.WriteLine(new string('*', s.Length+2));
Console.WriteLine("*" + s + "*" );
Console.WriteLine(new string('*', s.Length+2));解决 无用评论 打赏 举报