字符串的反转

来源:1-1 .NET简介

qq_追梦者_18

2017-12-11 15:14

例如输入:hello everone, 输出enoreve olleh

写回答 关注

1回答

  • 异凉聪
    2017-12-11 19:52:23

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

    namespace Test
    {
        class Program
        {
            static void Main(string[] args)
            {
                string[,] ov ={{"h","e","l","l","o"," "},{"eve","r","y","o","n","e"}};
                for(int a=0;a<2;a++)
                Console.Write("{0}{1}{2}{3}{4}{5}"+" ",ov[a,5],ov[a,4],ov[a,3],ov[a,2],ov[a,1],ov[a,0]);
            }
        }
    }

    qq_追梦者...

    谢了,大哥

    2017-12-11 20:22:32

    共 1 条回复 >

C#开发轻松入门

本门课程是C#语言的入门教程,将带你轻松入门.NET开发

254118 学习 · 1459 问题

查看课程

相似问题