static void Main(string[] args)
{
string N= Console.ReadLine();
char[] strarr = N.ToString().ToCharArray();
StringBuilder sb = new StringBuilder();
for (int i = strarr.Length-1; i >=0; i--)
{
sb.Append(strarr[i]);
}
Console.WriteLine(sb.ToString());
Console.ReadKey();
}
string aa=Console.ReadLine();
char[] bb=aa.ToCharArry();
for(int i=bb.length-1;i>=0;i--)
{
Console.Write(bb[i]);
}
纯手写,不知道有错没,没编译没调试