18,接收用户输入的一句英文,将其中的单词以反序输出。“hello c sharp”-"sharp c hello"
2012-10-08 10:57 飞鸟爱巢 阅读(1376) 评论(0) 编辑 收藏 举报 string s = Console.ReadLine();
string[] words = s.Split(' ');
for (int i = words.Length - 1; i >= 0; i--)
{ Console.Write(words[i]+' '); }