字符串的反转
例如输入:hello everone, 输出enoreve olleh
例如输入:hello everone, 输出enoreve olleh
2017-12-11
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]);
}
}
}
举报