成都网站建设设计

将想法与焦点和您一起共享

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://chengdu.cdxwcx.cn/article/pjccso.html