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#倒序输出字符
路径分享:http://www.hxwzsj.com/article/pjccso.html

其他资讯

Copyright © 2025 青羊区翔捷宏鑫字牌设计制作工作室(个体工商户) All Rights Reserved 蜀ICP备2025123194号-14
友情链接: 重庆手机网站建设 响应式网站设计 成都网站建设公司 古蔺网站建设 网站制作 高端定制网站设计 成都网站制作 手机网站建设 成都网站建设 品牌网站建设 成都网站建设 成都网站建设 成都网站设计 网站设计公司 成都网站设计 响应式网站设计方案 成都网站制作 成都商城网站建设 成都做网站建设公司 成都网站建设公司 网站建设 成都响应式网站建设公司