C#倒序输出字符

 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace retrun
{
    class Program
    {
        static void Main(string[] args)
        {
            string act = Console.ReadLine();
            string rev = "";
            for (int index = act.Length-1;index >= 0;index--)
            {
                rev += act[index];
            }
            Console.WriteLine("{0}",rev);
            Console.ReadKey();
        }
    }
}

网站名称:C#倒序输出字符
URL分享:http://csdahua.cn/article/pjccso.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流