class Program
{
static void Main(string[] args)
{
string mywords;
char[] mywordstn;
int i,mylength;
Console.WriteLine("请输入一个字符串:");
mywords = Console.ReadLine();
mywordstn = mywords.ToCharArray();
Console.WriteLine("length {0}",mywords.Length);
mylength = mywordstn.Length;
for (i=mylength-1; i>= 0; i--)
{
Console.Write(mywordstn[i]);
}
Console.ReadKey();
}
}