#region
{"中国","美国","巴西","澳大利亚","加拿大")中的内容反转,然后输出反转后的数组
string[] names = { "中国", "美国", "巴西", "澳大利亚", "加拿大" };
for(int i = names.Length-1; i >0; i--)
{
Console.WriteLine(names[i]+" ");
}
Console.ReadKey();
#endregion
字符串内容反转 如“中国,美国”变成“美国,中国”
猜你喜欢
转载自blog.csdn.net/nsjlive/article/details/81119425
今日推荐
周排行