倒序输出字符串

Code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace strResverTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string s;
            Console.WriteLine("Please input you world!");
            s = Console.ReadLine();
            char[] myChar = s.ToCharArray();
            for (int i = myChar.Length -1; i >= 0; i--)
            {
                Console.Write("{0}",myChar[i]);
            }
            Console.ReadLine();   

        }
    }
}

原文地址:https://www.cnblogs.com/Leo_wl/p/1780467.html