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();