using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string myString = "I Like CSharp";
string newString = "";
for (int i = myString.Length - 1; i >= 0; i--)
{
newString += myString[i];
}
Console.WriteLine("{0}", newString);
Console.ReadKey();
}
}
}
C#翻转字符串
最新推荐文章于 2022-09-27 16:15:41 发布