标签:reverse str 字符 for 一个 ons line readline write
Console.Write("请输入一个字符串:");
string str = Console.ReadLine();
string reverse = "";//用于存放反序后的字符串
for (int i = str.Length - 1; i >= 0; i--)
{
reverse += str[i];
}
Console.WriteLine(reverse+":串符字个一入输请");
Console.ReadLine();
标签:reverse str 字符 for 一个 ons line readline write
原文地址:http://www.cnblogs.com/huan123/p/8016192.html