-5

C# の問題に対する簡単な解決策が必要です

入力 : どんな体でも踊れる

出力:ABCD

4

2 に答える 2

2
string inputString = "Another One Bites The Dust And Another One Down";
string[] split = inputString.Split();
foreach (string s in split)
{
    Console.Write(s.Substring(0,1));
}
于 2013-05-08T10:24:54.340 に答える
1

これをチェックしてください:

string s = new string("Any Body Can Dance"
                     .Split(' ')
                     .Select(x => x.First())
                     .ToArray());
Console.WriteLine(s);
于 2013-05-08T10:25:09.107 に答える