1. static void Main(string[] args)  
  2. {   
  3.   //接收用户输入的字符串,将其中的字符以与输入相反的顺序输出。  
  4.    Console.WriteLine("Give me a string:");  
  5.    string mystring = Console.ReadLine();             
  6.    string myresult = "";  
  7.    for (int i = mystring.Length - 1; i >= 0; i--)  
  8.    {  
  9.      myresult += mystring[i];//或者myresult += mystring.Substring(i,1);  
  10.    }  
  11.    Console.WriteLine("The result is {0}:",myresult);  
  12.             Console.ReadKey();  
  13. }